mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-28 04:27:27 +02:00
Add disabled_default to entity infos (#85)
This commit is contained in:
parent
61c87fb1af
commit
655b99e2cb
@ -214,6 +214,7 @@ message ListEntitiesBinarySensorResponse {
|
|||||||
|
|
||||||
string device_class = 5;
|
string device_class = 5;
|
||||||
bool is_status_binary_sensor = 6;
|
bool is_status_binary_sensor = 6;
|
||||||
|
bool disabled_by_default = 7;
|
||||||
}
|
}
|
||||||
message BinarySensorStateResponse {
|
message BinarySensorStateResponse {
|
||||||
option (id) = 21;
|
option (id) = 21;
|
||||||
@ -243,6 +244,7 @@ message ListEntitiesCoverResponse {
|
|||||||
bool supports_position = 6;
|
bool supports_position = 6;
|
||||||
bool supports_tilt = 7;
|
bool supports_tilt = 7;
|
||||||
string device_class = 8;
|
string device_class = 8;
|
||||||
|
bool disabled_by_default = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LegacyCoverState {
|
enum LegacyCoverState {
|
||||||
@ -310,6 +312,7 @@ message ListEntitiesFanResponse {
|
|||||||
bool supports_speed = 6;
|
bool supports_speed = 6;
|
||||||
bool supports_direction = 7;
|
bool supports_direction = 7;
|
||||||
int32 supported_speed_levels = 8;
|
int32 supported_speed_levels = 8;
|
||||||
|
bool disabled_by_default = 9;
|
||||||
}
|
}
|
||||||
enum FanSpeed {
|
enum FanSpeed {
|
||||||
FAN_SPEED_LOW = 0;
|
FAN_SPEED_LOW = 0;
|
||||||
@ -384,6 +387,7 @@ message ListEntitiesLightResponse {
|
|||||||
float min_mireds = 9;
|
float min_mireds = 9;
|
||||||
float max_mireds = 10;
|
float max_mireds = 10;
|
||||||
repeated string effects = 11;
|
repeated string effects = 11;
|
||||||
|
bool disabled_by_default = 13;
|
||||||
}
|
}
|
||||||
message LightStateResponse {
|
message LightStateResponse {
|
||||||
option (id) = 24;
|
option (id) = 24;
|
||||||
@ -469,6 +473,7 @@ message ListEntitiesSensorResponse {
|
|||||||
string device_class = 9;
|
string device_class = 9;
|
||||||
SensorStateClass state_class = 10;
|
SensorStateClass state_class = 10;
|
||||||
SensorLastResetType last_reset_type = 11;
|
SensorLastResetType last_reset_type = 11;
|
||||||
|
bool disabled_by_default = 12;
|
||||||
}
|
}
|
||||||
message SensorStateResponse {
|
message SensorStateResponse {
|
||||||
option (id) = 25;
|
option (id) = 25;
|
||||||
@ -496,6 +501,7 @@ message ListEntitiesSwitchResponse {
|
|||||||
|
|
||||||
string icon = 5;
|
string icon = 5;
|
||||||
bool assumed_state = 6;
|
bool assumed_state = 6;
|
||||||
|
bool disabled_by_default = 7;
|
||||||
}
|
}
|
||||||
message SwitchStateResponse {
|
message SwitchStateResponse {
|
||||||
option (id) = 26;
|
option (id) = 26;
|
||||||
@ -528,6 +534,7 @@ message ListEntitiesTextSensorResponse {
|
|||||||
string unique_id = 4;
|
string unique_id = 4;
|
||||||
|
|
||||||
string icon = 5;
|
string icon = 5;
|
||||||
|
bool disabled_by_default = 6;
|
||||||
}
|
}
|
||||||
message TextSensorStateResponse {
|
message TextSensorStateResponse {
|
||||||
option (id) = 27;
|
option (id) = 27;
|
||||||
@ -687,6 +694,7 @@ message ListEntitiesCameraResponse {
|
|||||||
fixed32 key = 2;
|
fixed32 key = 2;
|
||||||
string name = 3;
|
string name = 3;
|
||||||
string unique_id = 4;
|
string unique_id = 4;
|
||||||
|
bool disabled_by_default = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CameraImageResponse {
|
message CameraImageResponse {
|
||||||
@ -779,6 +787,7 @@ message ListEntitiesClimateResponse {
|
|||||||
repeated string supported_custom_fan_modes = 15;
|
repeated string supported_custom_fan_modes = 15;
|
||||||
repeated ClimatePreset supported_presets = 16;
|
repeated ClimatePreset supported_presets = 16;
|
||||||
repeated string supported_custom_presets = 17;
|
repeated string supported_custom_presets = 17;
|
||||||
|
bool disabled_by_default = 18;
|
||||||
}
|
}
|
||||||
message ClimateStateResponse {
|
message ClimateStateResponse {
|
||||||
option (id) = 47;
|
option (id) = 47;
|
||||||
@ -846,6 +855,7 @@ message ListEntitiesNumberResponse {
|
|||||||
float min_value = 6;
|
float min_value = 6;
|
||||||
float max_value = 7;
|
float max_value = 7;
|
||||||
float step = 8;
|
float step = 8;
|
||||||
|
bool disabled_by_default = 9;
|
||||||
}
|
}
|
||||||
message NumberStateResponse {
|
message NumberStateResponse {
|
||||||
option (id) = 50;
|
option (id) = 50;
|
||||||
@ -882,6 +892,7 @@ message ListEntitiesSelectResponse {
|
|||||||
|
|
||||||
string icon = 5;
|
string icon = 5;
|
||||||
repeated string options = 6;
|
repeated string options = 6;
|
||||||
|
bool disabled_by_default = 7;
|
||||||
}
|
}
|
||||||
message SelectStateResponse {
|
message SelectStateResponse {
|
||||||
option (id) = 53;
|
option (id) = 53;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -110,6 +110,7 @@ class EntityInfo(APIModelBase):
|
|||||||
key: int = 0
|
key: int = 0
|
||||||
name: str = ""
|
name: str = ""
|
||||||
unique_id: str = ""
|
unique_id: str = ""
|
||||||
|
disabled_by_default: bool = False
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user