Bugfix restore startup state (#6189)

This commit is contained in:
Johann Kellerman authored and Paulus Schoutsen committed 2017-02-23 20:06:21 -08:00
1 parent 1d32bced1c
commit c940d26f07
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):