Store Axis device with entry_id key rather than unique_id (#85673)
* Store Axis device with entry_id key rather than unique_id * Fix review comments
This commit is contained in:
parent
c191daedc3
commit
be899b6ab6
12 changed files with 27 additions and 33 deletions
|
@ -48,7 +48,7 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up a Axis binary sensor."""
|
||||
device: AxisNetworkDevice = hass.data[AXIS_DOMAIN][config_entry.unique_id]
|
||||
device: AxisNetworkDevice = hass.data[AXIS_DOMAIN][config_entry.entry_id]
|
||||
|
||||
@callback
|
||||
def async_create_entity(event: Event) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue