Skip to content

Commit

Permalink
Merge pull request #12 from danielbrunt57/main
Browse files Browse the repository at this point in the history
fix: async_setup_entry
  • Loading branch information
parvez authored Sep 13, 2024
2 parents d2ed3e2 + 362e810 commit f535471
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/network_scanner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ async def async_setup(hass, config):

async def async_setup_entry(hass, config_entry):
"""Set up Network Scanner from a config entry."""
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
)
await hass.config_entries.async_forward_entry_setup(config_entry, ["sensor"])
return True

async def async_unload_entry(hass, config_entry):
Expand Down

0 comments on commit f535471

Please sign in to comment.