mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	missed one
This commit is contained in:
		| @@ -338,6 +338,7 @@ AsyncEventSourceResponse::AsyncEventSourceResponse(const AsyncWebServerRequest * | |||||||
|   std::string message = ws->get_config_json(); |   std::string message = ws->get_config_json(); | ||||||
|   this->try_send_nodefer(message.c_str(), "ping", millis(), 30000); |   this->try_send_nodefer(message.c_str(), "ping", millis(), 30000); | ||||||
|  |  | ||||||
|  | #ifdef USE_WEBSERVER_SORTING | ||||||
|   for (auto &group : ws->sorting_groups_) { |   for (auto &group : ws->sorting_groups_) { | ||||||
|     message = json::build_json([group](JsonObject root) { |     message = json::build_json([group](JsonObject root) { | ||||||
|       root["name"] = group.second.name; |       root["name"] = group.second.name; | ||||||
| @@ -348,6 +349,7 @@ AsyncEventSourceResponse::AsyncEventSourceResponse(const AsyncWebServerRequest * | |||||||
|     // since the only thing in the send buffer at this point is the initial ping/config |     // since the only thing in the send buffer at this point is the initial ping/config | ||||||
|     this->try_send_nodefer(message.c_str(), "sorting_group"); |     this->try_send_nodefer(message.c_str(), "sorting_group"); | ||||||
|   } |   } | ||||||
|  | #endif | ||||||
|  |  | ||||||
|   this->entities_iterator_->begin(ws->include_internal_); |   this->entities_iterator_->begin(ws->include_internal_); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user