2 Commits

Author SHA1 Message Date
Michael Graf
418469cda7 Bump Version 0.9.6 2021-12-28 16:44:15 +01:00
Michael Graf
2d1c6ecad8 Fix vacuum won't start when docked #4 2021-12-28 16:43:33 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -13,5 +13,5 @@
"http"
],
"iot_class": "cloud_polling",
"version": "0.9.5"
"version": "0.9.6"
}

View File

@@ -156,7 +156,7 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
if not self._state:
return
try:
if self._state.state == STATE_IDLE:
if self._state.state == STATE_IDLE or self._state.state == STATE_DOCKED:
self.robot.start_cleaning()
elif self._state.state == STATE_PAUSED:
self.robot.resume_cleaning()
@@ -177,7 +177,7 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
def return_to_base(self, **kwargs: Any) -> None:
"""Set the vacuum cleaner to return to the dock."""
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.send_to_base()
except NeatoRobotException as ex: