Update unique id

This commit is contained in:
G Johansson
2025-05-28 16:35:15 +00:00
parent 579676a9c7
commit 8a378f4055

View File

@@ -131,7 +131,7 @@ class SMHISensor(SmhiWeatherBaseEntity, SensorEntity):
longitude,
coordinator,
)
self._attr_unique_id += f"-{entity_description.key}"
self._attr_unique_id = f"{latitude}, {longitude}-{entity_description.key}"
def update_entity_data(self) -> None:
"""Refresh the entity data."""