Skip to content

Commit

Permalink
fix registry call (#525)
Browse files Browse the repository at this point in the history
* fix registry call

* remove await
  • Loading branch information
drc38 authored May 27, 2022
1 parent 5f8b445 commit 6f2c5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

central_sys = await CentralSystem.create(hass, entry)

dr = await device_registry.async_get_registry(hass)
dr = device_registry.async_get(hass)

""" Create Central System Device """
dr.async_get_or_create(
Expand Down

0 comments on commit 6f2c5b6

Please sign in to comment.