Skip to content

Commit 521ca3b

Browse files
committed
Improve comment
1 parent 3d99c4e commit 521ca3b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

custom_components/victron_mqtt/number.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ def __init__(
8989
self._attr_device_class = METRIC_TYPE_TO_DEVICE_CLASS.get(metric.metric_type)
9090
if self._attr_device_class is not None or metric.metric_type == MetricType.DYNAMIC:
9191
# We need to set the _attr_native_unit_of_measurement in two cases:
92-
# 1. When there is known device class which support multiple units. In this case
92+
# 1. When there is known device class which support multiple units. In this case
9393
# we publish what we have and HA will allow convertion to other supported units.
94+
# We specifically dont put those cases in the translation file by the merge script
95+
# not to waste translation resources so it has to come from here.
9496
# 2. Dynamic units come from user-configured MQTT topics (e.g.
9597
# SwitchableOutput Settings/Unit) and have no translation file
9698
# entry, so we must set the unit programmatically.

0 commit comments

Comments
 (0)