Skip to content

Commit

Permalink
Updated deserialize for device detail to include where_id.
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
bwssytems committed Dec 5, 2016
1 parent 12e1688 commit e3f1085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.bwssystems</groupId>
<artifactId>nest-controller</artifactId>
<version>1.0.11</version>
<version>1.0.12</version>
<packaging>jar</packaging>

<name>Nest Controller</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public Device deserialize(JsonElement json, Type typeOfT, JsonDeserializationCon
JsonObject theRawDetail = obj.getAsJsonObject(entry.getKey());
newDevice.setCurrentScheduleMode(theRawDetail.get("current_schedule_mode").getAsString());
newDevice.setFanMode(theRawDetail.get("fan_mode").getAsString());
newDevice.setWhereId(theRawDetail.get("where_id").getAsString());
devices.put(entry.getKey(), newDevice);
}
return new Device(devices);
Expand Down

0 comments on commit e3f1085

Please sign in to comment.