Skip to content

Commit

Permalink
device registry change
Browse files Browse the repository at this point in the history
  • Loading branch information
tahvane1 committed Jun 10, 2022
1 parent ba62f66 commit b7e9d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/jablotron80/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
cu = JA80CentralUnit(hass, entry.data, entry.options)
await cu.initialize()

device_registry = await dr.async_get_registry(hass)
device_registry = dr.async_get(hass)
device_registry.async_get_or_create(
config_entry_id=entry.entry_id,
identifiers={(DOMAIN, cu.serial_port)},
Expand Down

0 comments on commit b7e9d58

Please sign in to comment.