mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-04-13 19:57:01 +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;
|
||||
bool disabled_by_default = 6;
|
||||
EntityCategory entity_category = 7;
|
||||
string device_class = 8;
|
||||
}
|
||||
message TextSensorStateResponse {
|
||||
option (id) = 27;
|
||||
|
File diff suppressed because one or more lines are too long
@ -441,7 +441,7 @@ class SwitchState(EntityState):
|
||||
# ==================== TEXT SENSOR ====================
|
||||
@_frozen_dataclass_decorator
|
||||
class TextSensorInfo(EntityInfo):
|
||||
pass
|
||||
device_class: str = ""
|
||||
|
||||
|
||||
@_frozen_dataclass_decorator
|
||||
|
Loading…
Reference in New Issue
Block a user