We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96e26a5 commit 4847f98Copy full SHA for 4847f98
custom_components/nodered/number.py
@@ -13,6 +13,7 @@
13
CONF_ICON,
14
CONF_ID,
15
CONF_TYPE,
16
+ CONF_UNIT_OF_MEASUREMENT,
17
STATE_UNAVAILABLE,
18
STATE_UNKNOWN,
19
)
@@ -115,3 +116,6 @@ def update_discovery_config(self, msg):
115
116
117
self._attr_native_step = self._config.get(CONF_STEP_VALUE, DEFAULT_STEP)
118
self._attr_mode = self._config.get(CONF_MODE, NumberMode.AUTO)
119
+ self._attr_native_unit_of_measurement = self._config.get(
120
+ CONF_UNIT_OF_MEASUREMENT
121
+ )
0 commit comments