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:
cjkas 2026-10-12 20:55:20 +02:00
parent bec6bed54d
commit b51292889f

View file

@ -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) {