[iaqualink] Fix to work with recent API changes to the iAqualink cloud service. Currently the binding throws a gson parsing error early in the poll process rendering it completly broken. ()

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
Dan Cunningham 2022-07-04 12:46:38 -07:00 committed by GitHub
parent 325694747d
commit dc66345a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -394,8 +394,11 @@ public class IAqualinkClient {
if (homeScreen != null) {
homeScreen.forEach(element -> {
element.getAsJsonObject().entrySet().forEach(entry -> {
home.add(entry.getKey(), entry.getValue());
serializedMap.add(entry.getKey(), entry.getValue());
JsonElement value = entry.getValue();
home.add(entry.getKey(), value);
if (value.isJsonPrimitive() && value.getAsJsonPrimitive().isString()) {
serializedMap.add(entry.getKey(), value);
}
});
});
home.add("serialized_map", serializedMap);