Skip to content

Commit

Permalink
Fix return to base logic for neato (home-assistant#16776)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi authored and balloob committed Sep 22, 2018
1 parent 5613816 commit eec6722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/vacuum/neato.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def pause(self):

def return_to_base(self, **kwargs):
"""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.robot.send_to_base()

Expand Down

0 comments on commit eec6722

Please sign in to comment.