Skip to content

Commit

Permalink
Fix #1020
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Aug 25, 2024
1 parent 981cc42 commit 7372cb2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom_components/adaptive_lighting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):

undo_listener = config_entry.add_update_listener(async_update_options)
data[config_entry.entry_id] = {UNDO_UPDATE_LISTENER: undo_listener}
for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, platform),
)

await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
return True


Expand Down

2 comments on commit 7372cb2

@rwjack
Copy link
Contributor

@rwjack rwjack commented on 7372cb2 Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this commit fixes the warning on my end, and adapting lights works as it should, so it's likely something that needs to be changed in the tests

@wwwdesign
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.