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

Expose webserver_port to the native API (#2640)

This commit is contained in:
Jesse Hills
2021-11-01 09:33:04 +13:00
committed by GitHub
parent 2b04152482
commit d8b3af3815
6 changed files with 20 additions and 0 deletions

View File

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