From 6ff31bdbbf2650b0216a1270f60659b7e3fb403f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 5 Sep 2025 08:27:39 -0500 Subject: [PATCH] fix refactoring error --- esphome/components/captive_portal/captive_portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/captive_portal/captive_portal.cpp b/esphome/components/captive_portal/captive_portal.cpp index 148563d0ef..5b30841c3f 100644 --- a/esphome/components/captive_portal/captive_portal.cpp +++ b/esphome/components/captive_portal/captive_portal.cpp @@ -18,7 +18,7 @@ void CaptivePortal::handle_config(AsyncWebServerRequest *request) { stream->print(get_mac_address_pretty().c_str()); stream->print(F("\",\"name\":\"")); stream->print(App.get_name().c_str()); - stream->print(F("\",\"aps\":[")); + stream->print(F("\",\"aps\":[{}")); #else AsyncResponseStream *stream = request->beginResponseStream(F("application/json")); stream->addHeader(F("cache-control"), F("public, max-age=0, must-revalidate"));