From b51292889fdf140b8076246870882540fcd61d5c Mon Sep 17 00:00:00 2001 From: cjkas Date: Mon, 12 Oct 2026 20:55:20 +0200 Subject: [PATCH] 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 --- src/Web.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Web.cpp b/src/Web.cpp index 5e23e76..1434305 100644 --- a/src/Web.cpp +++ b/src/Web.cpp @@ -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) {