From bc6c8d9dbff1d783d417d04786f218c82c5fdcbb Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Sun, 13 Sep 2026 08:12:02 -0400 Subject: [PATCH 1/2] Oups --- custom_components/hilo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/hilo/__init__.py b/custom_components/hilo/__init__.py index 3ca5b708..362eec80 100644 --- a/custom_components/hilo/__init__.py +++ b/custom_components/hilo/__init__.py @@ -161,8 +161,8 @@ def _async_migrate_gateway_device_identifier( device_registry = dr.async_get(hass) if Version(current_version) >= Version("2026.8"): old_device = device_registry.async_get_device_by_identifier( - (DOMAIN, old_dsn, entry.entry_id) - ) + (DOMAIN, old_dsn), entry.entry_id) + else: old_device = device_registry.async_get_device(identifiers={(DOMAIN, old_dsn)}) From 3a29e12007101d791cad1876344de099c041bb01 Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Sun, 13 Sep 2026 08:17:08 -0400 Subject: [PATCH 2/2] Linting --- custom_components/hilo/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/hilo/__init__.py b/custom_components/hilo/__init__.py index 362eec80..507e67af 100644 --- a/custom_components/hilo/__init__.py +++ b/custom_components/hilo/__init__.py @@ -161,7 +161,8 @@ def _async_migrate_gateway_device_identifier( device_registry = dr.async_get(hass) if Version(current_version) >= Version("2026.8"): old_device = device_registry.async_get_device_by_identifier( - (DOMAIN, old_dsn), entry.entry_id) + (DOMAIN, old_dsn), entry.entry_id + ) else: old_device = device_registry.async_get_device(identifiers={(DOMAIN, old_dsn)})