mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-27 04:22:46 +02:00
Add device_class to text_sensor in ESPHome (#828)
This commit is contained in:
parent
27636f6381
commit
51be39f484
@ -587,6 +587,7 @@ message ListEntitiesTextSensorResponse {
|
|||||||
string icon = 5;
|
string icon = 5;
|
||||||
bool disabled_by_default = 6;
|
bool disabled_by_default = 6;
|
||||||
EntityCategory entity_category = 7;
|
EntityCategory entity_category = 7;
|
||||||
|
string device_class = 8;
|
||||||
}
|
}
|
||||||
message TextSensorStateResponse {
|
message TextSensorStateResponse {
|
||||||
option (id) = 27;
|
option (id) = 27;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -441,7 +441,7 @@ class SwitchState(EntityState):
|
|||||||
# ==================== TEXT SENSOR ====================
|
# ==================== TEXT SENSOR ====================
|
||||||
@_frozen_dataclass_decorator
|
@_frozen_dataclass_decorator
|
||||||
class TextSensorInfo(EntityInfo):
|
class TextSensorInfo(EntityInfo):
|
||||||
pass
|
device_class: str = ""
|
||||||
|
|
||||||
|
|
||||||
@_frozen_dataclass_decorator
|
@_frozen_dataclass_decorator
|
||||||
|
Loading…
Reference in New Issue
Block a user