Skip to content

Commit

Permalink
Fix to use updated API
Browse files Browse the repository at this point in the history
Fix to use updated API
  • Loading branch information
autolog committed Jul 29, 2019
1 parent 7681c7d commit ba27e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nanoleaf.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>1.2.0</string>
<string>1.3.0</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ def off(self):
# self.on = not self.on

def set_off(self):
data = {"on": False}
data = {"on": { "value" : False}}
return self.__put("state", data)

def set_on(self):
data = {"on": True}
data = {"on": { "value" : True}}
return self.__put("state", data)

def toggle_on(self):
Expand Down

0 comments on commit ba27e33

Please sign in to comment.