Skip to content

Commit

Permalink
Set proper unique_id for location sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jun 8, 2024
1 parent 2f425f2 commit cde5cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weatherxm/geo_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, coordinator, entity_id, device_id, alias, location, last_acti
self._last_activity = last_activity
self._current_weather = current_weather
self._attr_name = f"{alias} Location"
self._attr_unique_id = f"{device_id}"
self._attr_unique_id = f"{alias}_location"

@property
def latitude(self):
Expand Down

0 comments on commit cde5cf1

Please sign in to comment.