Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ca06f15029 | ||
|
d00e44ca5d |
@@ -13,5 +13,5 @@
|
|||||||
"http"
|
"http"
|
||||||
],
|
],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"version": "0.9.4"
|
"version": "0.9.5"
|
||||||
}
|
}
|
@@ -11,6 +11,7 @@ import voluptuous as vol
|
|||||||
from homeassistant.components.vacuum import (
|
from homeassistant.components.vacuum import (
|
||||||
ATTR_STATUS,
|
ATTR_STATUS,
|
||||||
STATE_CLEANING,
|
STATE_CLEANING,
|
||||||
|
STATE_DOCKED,
|
||||||
STATE_IDLE,
|
STATE_IDLE,
|
||||||
STATE_PAUSED,
|
STATE_PAUSED,
|
||||||
SUPPORT_BATTERY,
|
SUPPORT_BATTERY,
|
||||||
@@ -176,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:
|
if self._state.state == STATE_CLEANING or self._state.state == STATE_DOCKED:
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user