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 @@ -53,9 +53,9 @@ def __init__(
5353 self ._metric = metric
5454 self ._device_info = device_info
5555 if simple_naming :
56- entity_id = f"{ entity_platform } .{ ENTITY_PREFIX } _{ metric .unique_id } "
56+ entity_id = f"{ entity_platform } .{ ENTITY_PREFIX } _{ metric .unique_id } " . lower ()
5757 else :
58- entity_id = f"{ entity_platform } .{ ENTITY_PREFIX } _{ installation_id } _{ metric .unique_id } "
58+ entity_id = f"{ entity_platform } .{ ENTITY_PREFIX } _{ installation_id } _{ metric .unique_id } " . lower ()
5959 self ._attr_unique_id = entity_id
6060 self .entity_id = entity_id
6161 self ._attr_native_unit_of_measurement = self ._map_metric_to_unit_of_measurement (
@@ -171,3 +171,4 @@ def _map_metric_to_unit_of_measurement(
171171 def device_info (self ) -> DeviceInfo | None :
172172 """Return device information about the sensor."""
173173 return self ._device_info
174+
You can’t perform that action at this time.
0 commit comments