Skip to content

Commit

Permalink
async_reload -> async_schedule_reload
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin committed Jun 14, 2024
1 parent 2c302bf commit dcea3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/daily_schedule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

async def config_entry_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Update listener, called when the config entry options are changed."""
await hass.config_entries.async_reload(entry.entry_id)
hass.config_entries.async_schedule_reload(entry.entry_id)


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
Expand Down

0 comments on commit dcea3f8

Please sign in to comment.