Skip to content

Commit

Permalink
Fixes non async call async_forward_entry_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Jul 3, 2024
1 parent 430b4bc commit 8a752f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nordpool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def async_setup(hass: HomeAssistant, config: Config) -> bool:
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up nordpool as config entry."""
res = await _dry_setup(hass, entry.data)
await hass.config_entries.async_forward_entry_setup(entry, "sensor")
await hass.config_entries.async_forward_entry_setups(entry, "sensor")

entry.add_update_listener(async_reload_entry)
return res
Expand Down

0 comments on commit 8a752f0

Please sign in to comment.