This commit is contained in:
J. Nick Koston
2025-12-18 06:58:32 -10:00
parent 12d8e2ada2
commit 5547f9f5d6
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ std::string WebServer::get_config_json() {
root[ESPHOME_F("title")] = App.get_friendly_name().empty() ? App.get_name() : App.get_friendly_name();
char comment_buffer[ESPHOME_COMMENT_SIZE];
App.get_comment_string(comment_buffer, sizeof(comment_buffer));
App.get_comment_string(comment_buffer);
root[ESPHOME_F("comment")] = comment_buffer;
#if defined(USE_WEBSERVER_OTA_DISABLED) || !defined(USE_WEBSERVER_OTA)
root[ESPHOME_F("ota")] = false; // Note: USE_WEBSERVER_OTA_DISABLED only affects web_server, not captive_portal