mirror of
https://github.com/esphome/esphome.git
synced 2025-09-08 22:32:21 +01:00
Add friendly_name to device (#4296)
This commit is contained in:
@@ -104,7 +104,7 @@ void WebServer::setup() {
|
||||
// Configure reconnect timeout and send config
|
||||
|
||||
client->send(json::build_json([this](JsonObject root) {
|
||||
root["title"] = App.get_name();
|
||||
root["title"] = App.get_friendly_name().empty() ? App.get_name() : App.get_friendly_name();
|
||||
root["ota"] = this->allow_ota_;
|
||||
root["lang"] = "en";
|
||||
}).c_str(),
|
||||
|
Reference in New Issue
Block a user