Adjust entity registry access in integrations (1) (#88946)
This commit is contained in:
parent
f2b736fad0
commit
b3d6f098d2
22 changed files with 61 additions and 79 deletions
|
@ -23,7 +23,7 @@ from homeassistant.components.media_player import DOMAIN as MP_DOMAIN
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import entity_registry as ent_reg
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
async_dispatcher_send,
|
||||
|
@ -837,7 +837,7 @@ class SonosSpeaker:
|
|||
# Skip updating existing single speakers in polling mode
|
||||
return
|
||||
|
||||
entity_registry = ent_reg.async_get(self.hass)
|
||||
entity_registry = er.async_get(self.hass)
|
||||
sonos_group = []
|
||||
sonos_group_entities = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue