We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b2ad00 commit e93a9b9Copy full SHA for e93a9b9
custom_components/entsoe/sensor.py
@@ -176,7 +176,7 @@ def __init__(
176
# The Id used for addressing the entity in the ui, recorder history etc.
177
self.entity_id = f"{DOMAIN}.{slugify(name)}_{slugify(description.name)}"
178
# unique id in .storage file for ui configuration.
179
- self._attr_unique_id = f"entsoe.{slugify(name)}_{description.key}"
+ self._attr_unique_id = f"entsoe.{name}_{description.key}"
180
self._attr_name = f"{description.name} ({name})"
181
else:
182
self.entity_id = f"{DOMAIN}.{slugify(description.name)}"
0 commit comments