mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix botvac connected alert retrieval (#19937)
This commit is contained in:
commit
646aaab936
@ -82,7 +82,10 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
|||||||
self._available = False
|
self._available = False
|
||||||
return
|
return
|
||||||
_LOGGER.debug('self._state=%s', self._state)
|
_LOGGER.debug('self._state=%s', self._state)
|
||||||
|
if 'alert' in self._state:
|
||||||
robot_alert = ALERTS.get(self._state['alert'])
|
robot_alert = ALERTS.get(self._state['alert'])
|
||||||
|
else:
|
||||||
|
robot_alert = None
|
||||||
if self._state['state'] == 1:
|
if self._state['state'] == 1:
|
||||||
if self._state['details']['isCharging']:
|
if self._state['details']['isCharging']:
|
||||||
self._clean_state = STATE_DOCKED
|
self._clean_state = STATE_DOCKED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user