From 48545310f8635f2ef859f935235da33be96f1ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 2 Jun 2023 19:17:12 +0200 Subject: [PATCH] Somfy: fromJSON: add missing flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- Somfy.cpp | 1 + 1 file changed, 1 insertion(+) 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) {