1 """The Times of the Day integration."""
3 from __future__
import annotations
11 """Set up Times of the Day from a config entry."""
12 await hass.config_entries.async_forward_entry_setups(
13 entry, (Platform.BINARY_SENSOR,)
16 entry.async_on_unload(entry.add_update_listener(config_entry_update_listener))
22 """Update listener, called when the config entry options are changed."""
23 await hass.config_entries.async_reload(entry.entry_id)
27 """Unload a config entry."""
28 return await hass.config_entries.async_unload_platforms(
29 entry, (Platform.BINARY_SENSOR,)
None config_entry_update_listener(HomeAssistant hass, ConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)