Bugfix restore startup state (#6189)

This commit is contained in:
Johann Kellerman 2017-02-24 06:06:21 +02:00 committed by Paulus Schoutsen
parent 1d32bced1c
commit c940d26f07
3 changed files with 9 additions and 6 deletions

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):