mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
preen
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user