Skip to content

Commit

Permalink
Improve entry setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Dec 30, 2024
1 parent 825f1b5 commit 989ef49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/tauron_amiplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
if DOMAIN not in hass.data:
hass.data[DOMAIN] = {}

hass.async_create_task(
hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
)
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
config_entry.async_on_unload(config_entry.add_update_listener(async_reload_entry))
service = DownloadStatisticsService(hass)
hass.services.async_register(service.domain, service.service, service.async_handle_service, service.schema)
Expand Down

0 comments on commit 989ef49

Please sign in to comment.