Skip to content

Commit

Permalink
fix: revert changes to enity unique_id and device identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Nov 14, 2024
1 parent fbd0077 commit c877915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/saleryd_hrv/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ISSUE_URL = "https://github.com/bj00rn/ha-saleryd-ftx/issues"
SUPPORTED_FIRMWARES = ["4.1.5"]
UNSUPPORTED_FIRMWARES = ["4.1.1"]
CONFIG_VERSION = 3
CONFIG_VERSION = 4

# Icons
ICON = "mdi:format-quote-close"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/saleryd_hrv/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
self._entry = entry
self.entity_description = entity_description
self._attr_name = entity_description.name
self._attr_unique_id = f"{entry.unique_id}_{slugify(entity_description.name)}"
self._attr_unique_id = f"{entry.entry_id}_{slugify(entity_description.name)}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, entry.entry_id)},
name=entry.data.get(CONF_NAME),
Expand Down

0 comments on commit c877915

Please sign in to comment.