Fix Switchbot restore state (#23325)

* switchbot library

* req

* req

* issue #23039
This commit is contained in:
Daniel Høyer Iversen 2019-04-24 04:23:52 +02:00 committed by Paulus Schoutsen
parent 662375bdd7
commit 95bbea20a8
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ class SwitchBot(SwitchDevice, RestoreEntity):
state = await self.async_get_last_state()
if not state:
return
self._state = state.state
self._state = state.state == 'on'
def turn_on(self, **kwargs) -> None:
"""Turn device on."""