mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Update unique id
This commit is contained in:
@@ -131,7 +131,7 @@ class SMHISensor(SmhiWeatherBaseEntity, SensorEntity):
|
|||||||
longitude,
|
longitude,
|
||||||
coordinator,
|
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:
|
def update_entity_data(self) -> None:
|
||||||
"""Refresh the entity data."""
|
"""Refresh the entity data."""
|
||||||
|
Reference in New Issue
Block a user