From 4b75c6d2cc84e53fafcbb1c93382d9b57ab2bed7 Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Wed, 9 Sep 2026 18:59:44 -0400 Subject: [PATCH] Call to device_registry.devices.values() is deprecated HA wants us to iterate over the whole thing rather than treat it as a dict. --- custom_components/hilo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hilo/__init__.py b/custom_components/hilo/__init__.py index 99c3d229..0933d95d 100644 --- a/custom_components/hilo/__init__.py +++ b/custom_components/hilo/__init__.py @@ -781,7 +781,7 @@ async def _fetch_legacy_gateway_dsn(self, new_mac: str) -> str | None: returns its old DSN-based identifier if it exists. If it doesn't, it returns Noneto use the MAC address instead.""" device_registry = dr.async_get(self._hass) - for device in device_registry.devices.values(): + for device in device_registry.devices: if device.manufacturer != "Hilo" or device.model != "EQ000017": continue for domain, identifier in device.identifiers: