Merge pull request #58 from cjkas/cleanup/group-json-members

cleanup: drop the group members SomfyGroup::fromJSON threw away
This commit is contained in:
cjkas 2026-10-17 23:35:50 +02:00 • committed by GitHub
commit 9bef92d754
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,15 +179,7 @@ bool SomfyGroup::fromJSON(JsonObject &obj) {
//if(!obj["sunSensor"].isNull()) this->hasSunSensor() = obj["sunSensor"]; This is calculated
if(!obj["repeats"].isNull()) this->repeats = obj["repeats"];
if(!obj["linkedShades"].isNull()) {
uint8_t linkedShades[SOMFY_MAX_GROUPED_SHADES];
memset(linkedShades, 0x00, sizeof(linkedShades));
JsonArray arr = obj["linkedShades"];
uint8_t i = 0;
for(uint8_t shadeId : arr) {
linkedShades[i++] = shadeId;
}
}
// Members change only through /linkToGroup and /unlinkFromGroup (ModelEditor).
return true;
}
bool Transceiver::fromJSON(JsonObject& obj) {