Bugfix restore startup state (#6189)
This commit is contained in:
parent
1d32bced1c
commit
c940d26f07
3 changed files with 9 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue