Migrate sonos to lookup device scoped to config entry (#177984)

This commit is contained in:
Erik Montnemery
2026-08-01 23:24:19 +02:00
committed by GitHub
parent ae9052304d
commit d0305891df
+2 -2
View File
@@ -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