1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 23:21:54 +00:00
This commit is contained in:
J. Nick Koston
2025-10-30 12:38:12 -05:00
parent c2902c9671
commit cf99bab87b
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ namespace ld2410 {
void BaudRateSelect::control(const std::string &value) { void BaudRateSelect::control(const std::string &value) {
this->publish_state(value); this->publish_state(value);
this->parent_->set_baud_rate(state); this->parent_->set_baud_rate(value);
} }
} // namespace ld2410 } // namespace ld2410

View File

@@ -1212,7 +1212,7 @@ std::string WebServer::select_all_json_generator(WebServer *web_server, void *so
return web_server->select_json((select::Select *) (source), ((select::Select *) (source))->current_option(), return web_server->select_json((select::Select *) (source), ((select::Select *) (source))->current_option(),
DETAIL_ALL); DETAIL_ALL);
} }
std::string WebServer::select_json(select::Select *obj, const std::string &value, JsonDetail start_config) { std::string WebServer::select_json(select::Select *obj, const char *value, JsonDetail start_config) {
json::JsonBuilder builder; json::JsonBuilder builder;
JsonObject root = builder.root(); JsonObject root = builder.root();