Use cached states for neato when possible (#15218)

This commit is contained in:
Daniel Shokouhi authored and Paulus Schoutsen committed 2018-06-29 17:27:18 -04:00
1 parent 56f17b8651
commit 2524dca7bf
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ class NeatoConnectedSwitch(ToggleEntity):
_LOGGER.debug('self._state=%s', self._state)
if self.type == SWITCH_TYPE_SCHEDULE:
_LOGGER.debug("State: %s", self._state)
if self.robot.schedule_enabled:
if self._state['details']['isScheduleEnabled']:
self._schedule_state = STATE_ON
else:
self._schedule_state = STATE_OFF