1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

API: Expect a name for connections (#2533)

This commit is contained in:
Otto Winter
2022-01-20 12:03:32 +01:00
committed by GitHub
parent 1f8a1f0046
commit 62f9736b1d
5 changed files with 26 additions and 3 deletions

View File

@@ -766,6 +766,8 @@ HelloResponse APIConnection::hello(const HelloRequest &msg) {
resp.api_version_major = 1;
resp.api_version_minor = 6;
resp.server_info = App.get_name() + " (esphome v" ESPHOME_VERSION ")";
resp.name = App.get_name();
this->connection_state_ = ConnectionState::CONNECTED;
return resp;
}