diff --git a/esphome/components/web_server/web_server.cpp b/esphome/components/web_server/web_server.cpp index f8c6841c34..e5b8b36aa7 100644 --- a/esphome/components/web_server/web_server.cpp +++ b/esphome/components/web_server/web_server.cpp @@ -200,7 +200,7 @@ void WebServer::handle_js_request(AsyncWebServerRequest *request) { #endif void WebServer::handle_states_request(AsyncWebServerRequest *request) { - AsyncResponseStream *stream = request->beginResponseStream("text/json"); + AsyncResponseStream *stream = request->beginResponseStream("application/json"); StatesIterator states_it = StatesIterator(this); states_it.begin(); optional s;