1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Convert old deCONZ groups unique ids (#46093)

* Convert old groups unique ids
Work around for walrus operator not working properly :/

* Remove CONF_GROUP_ID_BASE once entities unique id are updated

* Don't use migrate_entry mechanism to update unique_ids of groups

* Remove walrus operator :(

* Fix review comments

* Walrusify assignment to old_unique_id
This commit is contained in:
Robert Svensson
2021-02-06 14:32:17 +01:00
committed by GitHub
parent 08163a848c
commit 60e3fce7dc
4 changed files with 123 additions and 23 deletions

View File

@@ -66,6 +66,7 @@ async def setup_deconz_integration(
options=ENTRY_OPTIONS,
get_state_response=DECONZ_WEB_REQUEST,
entry_id="1",
unique_id=BRIDGEID,
source="user",
):
"""Create the deCONZ gateway."""
@@ -76,6 +77,7 @@ async def setup_deconz_integration(
connection_class=CONN_CLASS_LOCAL_PUSH,
options=deepcopy(options),
entry_id=entry_id,
unique_id=unique_id,
)
config_entry.add_to_hass(hass)