Fix Switchbot restore state (#23325)

* switchbot library

* req

* req

* issue #23039
This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2019-04-23 19:23:52 -07:00
1 parent 662375bdd7
commit 95bbea20a8
3 files changed
+3 -3

No files matched your search

@@ -3,7 +3,7 @@
"name": "Switchbot",
"documentation": "https://www.home-assistant.io/components/switchbot",
"requirements": [
"PySwitchbot==0.5"
"PySwitchbot==0.6"
],
"dependencies": [],
"codeowners": [
+1 -1
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."""