Set botvac state when offline (#16805)
This commit is contained in:
parent
eaee55175b
commit
e90abf1007
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
||||||
requests.exceptions.HTTPError) as ex:
|
requests.exceptions.HTTPError) as ex:
|
||||||
_LOGGER.warning("Neato connection error: %s", ex)
|
_LOGGER.warning("Neato connection error: %s", ex)
|
||||||
self._state = None
|
self._state = None
|
||||||
|
self._clean_state = STATE_ERROR
|
||||||
|
self._status_state = 'Robot Offline'
|
||||||
return
|
return
|
||||||
_LOGGER.debug('self._state=%s', self._state)
|
_LOGGER.debug('self._state=%s', self._state)
|
||||||
if self._state['state'] == 1:
|
if self._state['state'] == 1:
|
||||||
|
|
Loading…
Add table
Reference in a new issue