mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Switch did not update (#4466)
This commit is contained in:
parent
93747f2766
commit
8beefcfc69
@ -54,6 +54,7 @@ class NeatoConnectedSwitch(ToggleEntity):
|
||||
self.neato.update_robots()
|
||||
if not self._state:
|
||||
return
|
||||
self._state = self.robot.state
|
||||
_LOGGER.debug('self._state=%s', self._state)
|
||||
if self.type == SWITCH_TYPE_CLEAN:
|
||||
if (self.robot.state['action'] == 1 and
|
||||
|
Loading…
x
Reference in New Issue
Block a user