API: Expect a name for connections (#2533)

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

No files matched your search

@@ -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;
}