Update for style changes in python-wink
This commit is contained in:
1 parent
c91cd9aa84
commit
afbf377b6d
6 files changed
+39
-77
No files matched your search
@@ -44,10 +44,10 @@ class WinkLight(WinkToggleDevice):
|
||||
brightness = kwargs.get(ATTR_BRIGHTNESS)
|
||||
|
||||
if brightness is not None:
|
||||
self.wink.setState(True, brightness / 255)
|
||||
self.wink.set_state(True, brightness / 255)
|
||||
|
||||
else:
|
||||
self.wink.setState(True)
|
||||
self.wink.set_state(True)
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
|
||||
Reference in new issue
Block a user