Bug fixes for Wink

This commit is contained in:
Paulus Schoutsen committed 2015-01-15 21:25:24 -08:00
1 parent c116cb095d
commit 702498ca09
7 files changed
+193 -140

No files matched your search

+5 -1
View File
@@ -86,7 +86,7 @@ class WemoSwitch(ToggleDevice):
@property
def is_on(self):
""" True if switch is on. """
return self.wemo.get_state(True)
return self.wemo.get_state()
def turn_on(self, **kwargs):
""" Turns the switch on. """
@@ -95,3 +95,7 @@ class WemoSwitch(ToggleDevice):
def turn_off(self):
""" Turns the switch off. """
self.wemo.off()
def update(self):
""" Update Wemo state. """
self.wemo.get_state(True)