mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-12-18 16:09:00 +01:00
Add suggested_area to device info (#607)
This commit is contained in:
parent
cafdccaf6c
commit
e91da7e301
@ -217,6 +217,8 @@ message DeviceInfoResponse {
|
|||||||
string friendly_name = 13;
|
string friendly_name = 13;
|
||||||
|
|
||||||
uint32 voice_assistant_version = 14;
|
uint32 voice_assistant_version = 14;
|
||||||
|
|
||||||
|
string suggested_area = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListEntitiesRequest {
|
message ListEntitiesRequest {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -133,6 +133,7 @@ class DeviceInfo(APIModelBase):
|
|||||||
voice_assistant_version: int = 0
|
voice_assistant_version: int = 0
|
||||||
legacy_bluetooth_proxy_version: int = 0
|
legacy_bluetooth_proxy_version: int = 0
|
||||||
bluetooth_proxy_feature_flags: int = 0
|
bluetooth_proxy_feature_flags: int = 0
|
||||||
|
suggested_area: str = ""
|
||||||
|
|
||||||
def bluetooth_proxy_feature_flags_compat(self, api_version: APIVersion) -> int:
|
def bluetooth_proxy_feature_flags_compat(self, api_version: APIVersion) -> int:
|
||||||
if api_version < APIVersion(1, 9):
|
if api_version < APIVersion(1, 9):
|
||||||
|
Loading…
Reference in New Issue
Block a user