Expose webserver port via native API (#131)

This commit is contained in:
Jesse Hills 2021-10-29 07:03:39 +13:00 committed by GitHub
parent b43f64f829
commit 09d760a3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 144 additions and 134 deletions

View File

@ -183,6 +183,8 @@ message DeviceInfoResponse {
// The esphome project details if set
string project_name = 8;
string project_version = 9;
uint32 webserver_port = 10;
}
message ListEntitiesRequest {

File diff suppressed because one or more lines are too long

View File

@ -104,6 +104,7 @@ class DeviceInfo(APIModelBase):
esphome_version: str = ""
project_name: str = ""
project_version: str = ""
webserver_port: int = 0
class EntityCategory(APIIntEnum):