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
|
@ -1,6 +1,6 @@
|
|||
"""Adapter to wrap the rachiopy api for home assistant."""
|
||||
|
||||
from homeassistant.helpers import device_registry
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
from homeassistant.helpers.entity import DeviceInfo, Entity
|
||||
|
||||
from .const import DEFAULT_NAME, DOMAIN
|
||||
|
@ -25,7 +25,7 @@ class RachioDevice(Entity):
|
|||
},
|
||||
connections={
|
||||
(
|
||||
device_registry.CONNECTION_NETWORK_MAC,
|
||||
dr.CONNECTION_NETWORK_MAC,
|
||||
self._controller.mac_address,
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue