diff --git a/Somfy.cpp b/Somfy.cpp index 9a3840b..f94192a 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -1494,6 +1494,7 @@ bool SomfyShade::fromJSON(JsonObject &obj) { this->linkedRemotes[j].setRemoteAddress(linkedAddresses[j]); } } + if(obj.containsKey("flags")) this->flags = obj["flags"]; return true; } bool SomfyShade::toJSON(JsonObject &obj) {