Skip to content

Commit e93a9b9

Browse files
committed
Prevent re-creation of entities
1 parent 8b2ad00 commit e93a9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/entsoe/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __init__(
176176
# The Id used for addressing the entity in the ui, recorder history etc.
177177
self.entity_id = f"{DOMAIN}.{slugify(name)}_{slugify(description.name)}"
178178
# unique id in .storage file for ui configuration.
179-
self._attr_unique_id = f"entsoe.{slugify(name)}_{description.key}"
179+
self._attr_unique_id = f"entsoe.{name}_{description.key}"
180180
self._attr_name = f"{description.name} ({name})"
181181
else:
182182
self.entity_id = f"{DOMAIN}.{slugify(description.name)}"

0 commit comments

Comments
 (0)