Skip to content

Commit

Permalink
Fixed one more bug related to missing fields in the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
indigodomo committed Mar 12, 2018
1 parent dd7923f commit e5f4287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rachio Sprinkler.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.1.1</string>
<string>1.1.2</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
10 changes: 5 additions & 5 deletions Rachio Sprinkler.indigoPlugin/Contents/Server Plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,16 +546,16 @@ def deviceStartComm(self, dev):
update_list.append({"key": "address", "value": dev_dict["macAddress"]})
update_list.append({"key": "model", "value": dev_dict["model"]})
update_list.append({"key": "serialNumber", "value": dev_dict["serialNumber"]})
update_list.append({"key": "elevation", "value": dev_dict["elevation"]})
update_list.append({"key": "latitude", "value": dev_dict["latitude"]})
update_list.append({"key": "longitude", "value": dev_dict["longitude"]})
update_list.append({"key": "elevation", "value": dev_dict.get("elevation", "unavailable from API")})
update_list.append({"key": "latitude", "value": dev_dict.get("latitude", "unavailable from API")})
update_list.append({"key": "longitude", "value": dev_dict.get("longitude", "unavailable from API")})
update_list.append({"key": "name", "value": dev_dict["name"]})
update_list.append({"key": "inStandbyMode", "value": not dev_dict["on"]})
update_list.append({"key": "paused", "value": dev_dict["paused"]})
update_list.append({"key": "scheduleModeType", "value": dev_dict["scheduleModeType"]})
update_list.append({"key": "status", "value": dev_dict["status"]})
update_list.append({"key": "timeZone", "value": dev_dict["timeZone"]})
update_list.append({"key": "utcOffset", "value": dev_dict["utcOffset"]})
update_list.append({"key": "timeZone", "value": dev_dict.get("timeZone", "unavailable from API")})
update_list.append({"key": "utcOffset", "value": dev_dict.get("utcOffset", "unavailable from API")})
# Get the current schedule for the device - it will tell us if it's running or not
activeScheduleName = None
try:
Expand Down

0 comments on commit e5f4287

Please sign in to comment.