Bugfix restore startup state (#6189)
This commit is contained in:
1 parent
1d32bced1c
commit
c940d26f07
3 files changed
+9
-6
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user