From 8beefcfc6932b9149dd7f95692e7034218ee993c Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sat, 19 Nov 2016 15:52:42 +0100 Subject: [PATCH] Switch did not update (#4466) --- homeassistant/components/switch/neato.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/switch/neato.py b/homeassistant/components/switch/neato.py index e7eedee5a0b..fdc5f9352b7 100644 --- a/homeassistant/components/switch/neato.py +++ b/homeassistant/components/switch/neato.py @@ -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