mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-02-17 01:51:23 +01:00
Add unit_of_measurement to number components (#147)
This commit is contained in:
parent
72a5130eab
commit
da0ecd8437
@ -873,6 +873,7 @@ message ListEntitiesNumberResponse {
|
||||
float step = 8;
|
||||
bool disabled_by_default = 9;
|
||||
EntityCategory entity_category = 10;
|
||||
string unit_of_measurement = 11;
|
||||
}
|
||||
message NumberStateResponse {
|
||||
option (id) = 50;
|
||||
|
File diff suppressed because one or more lines are too long
@ -550,6 +550,7 @@ class NumberInfo(EntityInfo):
|
||||
step: float = converter_field(
|
||||
default=0.0, converter=fix_float_single_double_conversion
|
||||
)
|
||||
unit_of_measurement: str = ""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
Loading…
Reference in New Issue
Block a user