mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-26 12:45:26 +01:00
Add device class support to number (#309)
This commit is contained in:
parent
356e4fbd8f
commit
d9791d1874
@ -902,6 +902,7 @@ message ListEntitiesNumberResponse {
|
||||
EntityCategory entity_category = 10;
|
||||
string unit_of_measurement = 11;
|
||||
NumberMode mode = 12;
|
||||
string device_class = 13;
|
||||
}
|
||||
message NumberStateResponse {
|
||||
option (id) = 50;
|
||||
|
File diff suppressed because one or more lines are too long
@ -565,6 +565,7 @@ class NumberInfo(EntityInfo):
|
||||
mode: Optional[NumberMode] = converter_field(
|
||||
default=NumberMode.AUTO, converter=NumberMode.convert
|
||||
)
|
||||
device_class: str = ""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
Loading…
Reference in New Issue
Block a user