Fix vacuum won't start when docked #4
This commit is contained in:
parent
230fca0f6f
commit
8a9eff2bb1
@ -13,5 +13,5 @@
|
|||||||
"http"
|
"http"
|
||||||
],
|
],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"version": "0.9.0"
|
"version": "0.9.2"
|
||||||
}
|
}
|
@ -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,
|
||||||
@ -155,7 +156,7 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
|
|||||||
if not self._state:
|
if not self._state:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
if self._state.state == STATE_IDLE:
|
if self._state.state == STATE_IDLE or self._state.state == STATE_DOCKED:
|
||||||
self.robot.start_cleaning()
|
self.robot.start_cleaning()
|
||||||
elif self._state.state == STATE_PAUSED:
|
elif self._state.state == STATE_PAUSED:
|
||||||
self.robot.resume_cleaning()
|
self.robot.resume_cleaning()
|
||||||
|
Loading…
Reference in New Issue
Block a user