Skip to content

Commit

Permalink
fixes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
Pho3niX90 committed Oct 4, 2024
1 parent 58166e0 commit f0e2632
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/solis_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
_LOGGER.debug(f'config entry host = {host}, post = {port}')

# Set up the platforms associated with this integration
for component in PLATFORMS:
hass.async_create_task(hass.config_entries.async_forward_entry_setup(entry, component))
_LOGGER.debug(f"async_setup_entry: loading: {component}")
await asyncio.sleep(1)
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)

await asyncio.sleep(20)
return True

Expand Down

0 comments on commit f0e2632

Please sign in to comment.