From d0305891df93bc8a8d864c141b445418f3ce212d Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 1 Aug 2026 23:24:19 +0200 Subject: [PATCH] Migrate sonos to lookup device scoped to config entry (#177984) --- homeassistant/components/sonos/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sonos/__init__.py b/homeassistant/components/sonos/__init__.py index 7594061a997f..de9f0b6b14e0 100644 --- a/homeassistant/components/sonos/__init__.py +++ b/homeassistant/components/sonos/__init__.py @@ -579,8 +579,8 @@ class SonosDiscoveryManager: def is_device_disabled(self, uid: str) -> bool: """Check if the Sonos device is disabled in the device registry.""" if not ( - device := dr.async_get(self.hass).async_get_device( - identifiers={(DOMAIN, uid)} + device := dr.async_get(self.hass).async_get_device_by_identifier( + (DOMAIN, uid), self.entry.entry_id ) ): return False