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
|
||||
return
|
||||
_LOGGER.debug('self._state=%s', self._state)
|
||||
robot_alert = ALERTS.get(self._state['alert'])
|
||||
if 'alert' in self._state:
|
||||
robot_alert = ALERTS.get(self._state['alert'])
|
||||
else:
|
||||
robot_alert = None
|
||||
if self._state['state'] == 1:
|
||||
if self._state['details']['isCharging']:
|
||||
self._clean_state = STATE_DOCKED
|
||||
|
Loading…
x
Reference in New Issue
Block a user