Skip to content

Commit 3e994cd

Browse files
authored
Fix deprecation of 'async_get_registry' (#176)
Fixes issue #174
1 parent 5563fd0 commit 3e994cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/remote_homeassistant/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _async_instance_id_match(info):
427427

428428
self._hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_stop_handler)
429429

430-
device_registry = await dr.async_get_registry(self._hass)
430+
device_registry = dr.async_get(self._hass)
431431
device_registry.async_get_or_create(
432432
config_entry_id=self._entry.entry_id,
433433
identifiers={(DOMAIN, f"remote_{self._entry.unique_id}")},

0 commit comments

Comments
 (0)