mirror of
https://github.com/home-assistant/core.git
synced 2026-08-06 21:35:13 +01:00
Migrate sonos to lookup device scoped to config entry (#177984)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user