Add support for unit of measurement to HA number entities (#9312)

This commit is contained in:
Franck Nijhof
2021-11-03 20:24:55 +01:00
committed by Koen Kanters
parent 9729a72d33
commit ee57b0ce0b
+1
View File
@@ -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],
},
};