Bugfix restore startup state (#6189)

This commit is contained in:
Johann Kellerman authored and Paulus Schoutsen committed 2017-02-25 14:35:27 -08:00
1 parent 7fcc3ae00a
commit 477f621705
3 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ class InputBoolean(ToggleEntity):
state = yield from async_get_last_state(self.hass, self.entity_id)
if not state:
return
self._state = state.state == 'on'
self._state = state.state == STATE_ON
@asyncio.coroutine
def async_turn_on(self, **kwargs):