Expose webserver_port to the native API (#2640)
This commit is contained in:
1 parent
2b04152482
commit
d8b3af3815
6 files changed
+20
No files matched your search
@@ -759,6 +759,9 @@ DeviceInfoResponse APIConnection::device_info(const DeviceInfoRequest &msg) {
|
||||
#ifdef ESPHOME_PROJECT_NAME
|
||||
resp.project_name = ESPHOME_PROJECT_NAME;
|
||||
resp.project_version = ESPHOME_PROJECT_VERSION;
|
||||
#endif
|
||||
#ifdef USE_WEBSERVER
|
||||
resp.webserver_port = WEBSERVER_PORT;
|
||||
#endif
|
||||
return resp;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user