Fix vacuum won't start when docked #4
This commit is contained in:
parent
ca06f15029
commit
2d1c6ecad8
@ -156,7 +156,7 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
|
|||||||
if not self._state:
|
if not self._state:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
if self._state.state == STATE_IDLE:
|
if self._state.state == STATE_IDLE or self._state.state == STATE_DOCKED:
|
||||||
self.robot.start_cleaning()
|
self.robot.start_cleaning()
|
||||||
elif self._state.state == STATE_PAUSED:
|
elif self._state.state == STATE_PAUSED:
|
||||||
self.robot.resume_cleaning()
|
self.robot.resume_cleaning()
|
||||||
@ -177,7 +177,7 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
|
|||||||
def return_to_base(self, **kwargs: Any) -> None:
|
def return_to_base(self, **kwargs: Any) -> None:
|
||||||
"""Set the vacuum cleaner to return to the dock."""
|
"""Set the vacuum cleaner to return to the dock."""
|
||||||
try:
|
try:
|
||||||
if self._state.state == STATE_CLEANING or self._state.state == STATE_DOCKED:
|
if self._state.state == STATE_CLEANING:
|
||||||
self.robot.pause_cleaning()
|
self.robot.pause_cleaning()
|
||||||
self.robot.send_to_base()
|
self.robot.send_to_base()
|
||||||
except NeatoRobotException as ex:
|
except NeatoRobotException as ex:
|
||||||
|
Loading…
Reference in New Issue
Block a user