Set botvac state when offline (#16805)

This commit is contained in:
Daniel Shokouhi 2018-09-23 03:35:18 -07:00 committed by Fabian Affolter
parent eaee55175b
commit e90abf1007

View file

@ -75,6 +75,8 @@ class NeatoConnectedVacuum(StateVacuumDevice):
requests.exceptions.HTTPError) as ex:
_LOGGER.warning("Neato connection error: %s", ex)
self._state = None
self._clean_state = STATE_ERROR
self._status_state = 'Robot Offline'
return
_LOGGER.debug('self._state=%s', self._state)
if self._state['state'] == 1: