[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. (#13073)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
parent
325694747d
commit
dc66345a7b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user