Skip to content

Commit

Permalink
Add disabled_default to entity infos (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Aug 3, 2021
1 parent 61c87fb commit 655b99e
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 120 deletions.
11 changes: 11 additions & 0 deletions aioesphomeapi/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ message ListEntitiesBinarySensorResponse {

string device_class = 5;
bool is_status_binary_sensor = 6;
bool disabled_by_default = 7;
}
message BinarySensorStateResponse {
option (id) = 21;
Expand Down Expand Up @@ -243,6 +244,7 @@ message ListEntitiesCoverResponse {
bool supports_position = 6;
bool supports_tilt = 7;
string device_class = 8;
bool disabled_by_default = 9;
}

enum LegacyCoverState {
Expand Down Expand Up @@ -310,6 +312,7 @@ message ListEntitiesFanResponse {
bool supports_speed = 6;
bool supports_direction = 7;
int32 supported_speed_levels = 8;
bool disabled_by_default = 9;
}
enum FanSpeed {
FAN_SPEED_LOW = 0;
Expand Down Expand Up @@ -384,6 +387,7 @@ message ListEntitiesLightResponse {
float min_mireds = 9;
float max_mireds = 10;
repeated string effects = 11;
bool disabled_by_default = 13;
}
message LightStateResponse {
option (id) = 24;
Expand Down Expand Up @@ -469,6 +473,7 @@ message ListEntitiesSensorResponse {
string device_class = 9;
SensorStateClass state_class = 10;
SensorLastResetType last_reset_type = 11;
bool disabled_by_default = 12;
}
message SensorStateResponse {
option (id) = 25;
Expand Down Expand Up @@ -496,6 +501,7 @@ message ListEntitiesSwitchResponse {

string icon = 5;
bool assumed_state = 6;
bool disabled_by_default = 7;
}
message SwitchStateResponse {
option (id) = 26;
Expand Down Expand Up @@ -528,6 +534,7 @@ message ListEntitiesTextSensorResponse {
string unique_id = 4;

string icon = 5;
bool disabled_by_default = 6;
}
message TextSensorStateResponse {
option (id) = 27;
Expand Down Expand Up @@ -687,6 +694,7 @@ message ListEntitiesCameraResponse {
fixed32 key = 2;
string name = 3;
string unique_id = 4;
bool disabled_by_default = 5;
}

message CameraImageResponse {
Expand Down Expand Up @@ -779,6 +787,7 @@ message ListEntitiesClimateResponse {
repeated string supported_custom_fan_modes = 15;
repeated ClimatePreset supported_presets = 16;
repeated string supported_custom_presets = 17;
bool disabled_by_default = 18;
}
message ClimateStateResponse {
option (id) = 47;
Expand Down Expand Up @@ -846,6 +855,7 @@ message ListEntitiesNumberResponse {
float min_value = 6;
float max_value = 7;
float step = 8;
bool disabled_by_default = 9;
}
message NumberStateResponse {
option (id) = 50;
Expand Down Expand Up @@ -882,6 +892,7 @@ message ListEntitiesSelectResponse {

string icon = 5;
repeated string options = 6;
bool disabled_by_default = 7;
}
message SelectStateResponse {
option (id) = 53;
Expand Down
Loading

0 comments on commit 655b99e

Please sign in to comment.