mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Switch did not update (#4466)
This commit is contained in:
committed by
GitHub
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
|
||||
|
Reference in New Issue
Block a user