Fix return to base logic for neato (#16776)
This commit is contained in:
parent
5613816476
commit
eec6722cf4
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
||||||
|
|
||||||
def return_to_base(self, **kwargs):
|
def return_to_base(self, **kwargs):
|
||||||
"""Set the vacuum cleaner to return to the dock."""
|
"""Set the vacuum cleaner to return to the dock."""
|
||||||
|
if self._clean_state == STATE_CLEANING:
|
||||||
|
self.robot.pause_cleaning()
|
||||||
self._clean_state = STATE_RETURNING
|
self._clean_state = STATE_RETURNING
|
||||||
self.robot.send_to_base()
|
self.robot.send_to_base()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue