Skip to content

Commit

Permalink
fix: use non-deprecated async_get
Browse files Browse the repository at this point in the history
closes #1604
  • Loading branch information
alandtse committed May 29, 2022
1 parent 0dbcddf commit 113b5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ async def async_update_data() -> Optional[AlexaEntityData]:

hass.data[DATA_ALEXAMEDIA]["accounts"][email]["new_devices"] = False
# prune stale devices
device_registry = await dr.async_get_registry(hass)
device_registry = dr.async_get(hass)
for device_entry in dr.async_entries_for_config_entry(
device_registry, config_entry.entry_id
):
Expand Down

0 comments on commit 113b5e2

Please sign in to comment.