mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 22:02:17 +01:00
fix: return the shade from /repeatCommand as an object
The shade branch opened an array and wrote the shade's named fields straight into it, so the response was invalid JSON. The web UI reads it as one shade, as the group branch already returns it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bec6bed54d
commit
b51292889f
1 changed files with 2 additions and 2 deletions
|
|
@ -1016,9 +1016,9 @@ void Web::handleRepeatCommand(AsyncWebServerRequest *request, JsonVariant &json)
|
|||
if(!queueRadioCommand(request, cmd)) return;
|
||||
AsyncJsonResp resp;
|
||||
resp.beginResponse(request, g_async_content, sizeof(g_async_content));
|
||||
resp.beginArray();
|
||||
resp.beginObject();
|
||||
serializeShadeRef(shade, resp);
|
||||
resp.endArray();
|
||||
resp.endObject();
|
||||
resp.endResponse();
|
||||
}
|
||||
else if(groupId != 255) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue