Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Fix vacuum won't start when docked #4
Browse files Browse the repository at this point in the history
  • Loading branch information
trunneml committed May 26, 2021
1 parent 230fca0 commit 8a9eff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"http"
],
"iot_class": "cloud_polling",
"version": "0.9.0"
"version": "0.9.2"
}
3 changes: 2 additions & 1 deletion vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from homeassistant.components.vacuum import (
ATTR_STATUS,
STATE_CLEANING,
STATE_DOCKED,
STATE_IDLE,
STATE_PAUSED,
SUPPORT_BATTERY,
Expand Down Expand Up @@ -155,7 +156,7 @@ def start(self):
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()
Expand Down

0 comments on commit 8a9eff2

Please sign in to comment.