Skip to content

Commit

Permalink
migrate to async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-mc1 authored and IATkachenko committed Dec 15, 2024
1 parent 4bfb7b1 commit a8d6e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/sleep_as_android/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
hass, config_entry, registry
)

result = await hass.config_entries.async_forward_entry_setup(
config_entry, Platform.SENSOR
await hass.config_entries.async_forward_entry_setups(
config_entry, [Platform.SENSOR]
)
config_entry.async_on_unload(config_entry.add_update_listener(async_update_options))
return result
return True


async def async_update_options(hass: HomeAssistant, entry: ConfigEntry) -> None:
Expand Down

0 comments on commit a8d6e1b

Please sign in to comment.