Skip to content

Commit

Permalink
fix: revert changes to device id
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Nov 14, 2024
1 parent 1c0acfd commit fbd0077
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions custom_components/saleryd_hrv/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ def __init__(
self._attr_unique_id = f"{entry.unique_id}_{slugify(entity_description.name)}"
self._attr_should_poll = False
self._attr_device_info = DeviceInfo(
identifiers={
# Serial numbers are unique identifiers within a specific domain
(DOMAIN, entry.unique_id)
},
identifiers={(DOMAIN, entry.entry_id)},
name=entry.data.get(CONF_NAME),
manufacturer=MANUFACTURER,
)
Expand All @@ -47,10 +44,7 @@ def __init__(
self._attr_name = entity_description.name
self._attr_unique_id = f"{entry.unique_id}_{slugify(entity_description.name)}"
self._attr_device_info = DeviceInfo(
identifiers={
# Serial numbers are unique identifiers within a specific domain
(DOMAIN, entry.unique_id)
},
identifiers={(DOMAIN, entry.entry_id)},
name=entry.data.get(CONF_NAME),
manufacturer=MANUFACTURER,
)

0 comments on commit fbd0077

Please sign in to comment.