mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-19 18:16:31 +00:00
Add support for unit of measurement to HA number entities (#9312)
This commit is contained in:
committed by
Koen Kanters
parent
9729a72d33
commit
ee57b0ce0b
@@ -617,6 +617,7 @@ export default class HomeAssistant extends Extension {
|
||||
command_topic_postfix: firstExpose.property,
|
||||
min: firstExpose.value_min != null ? firstExpose.value_min : -65535,
|
||||
max: firstExpose.value_max != null ? firstExpose.value_max : 65535,
|
||||
...(firstExpose.unit && {unit_of_measurement: firstExpose.unit}),
|
||||
...lookup[firstExpose.name],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user