File tree Expand file tree Collapse file tree
custom_components/victron_mqtt Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments