Skip to content

Commit

Permalink
fix: use async_forward_entry_setups and async_unload_platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
luuuis committed Mar 7, 2024
1 parent 0a8bad0 commit 52c29d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/omie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
adjustment=OMIESources(today=adjustment, tomorrow=adjustment_next, yesterday=adjustment_previous)
)

await hass.config_entries.async_forward_entry_setup(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
hass.data.pop(DOMAIN)
unload_ok = await hass.config_entries.async_forward_entry_unload(entry, PLATFORMS)
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
return unload_ok

0 comments on commit 52c29d9

Please sign in to comment.