Skip to content

Commit

Permalink
Merge pull request #84 from uvjim/fix_async_get_registry_deprecation_…
Browse files Browse the repository at this point in the history
…warning

fix `async_get_registry` deprecation warning
  • Loading branch information
bigbadblunt authored Jun 18, 2022
2 parents ffd05af + 67c90c8 commit ab1ca2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lightwave2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def async_setup_entry(hass, config_entry):

hass.data[DOMAIN][config_entry.entry_id][LIGHTWAVE_WEBHOOK] = url

device_registry = await dr.async_get_registry(hass)
device_registry = dr.async_get(hass)
for featureset_id, hubname in link.get_hubs():
device_registry.async_get_or_create(
config_entry_id=config_entry.entry_id,
Expand Down

0 comments on commit ab1ca2a

Please sign in to comment.