1 """The generic_thermostat component."""
6 async_remove_stale_devices_links_keep_entity_device,
9 from .const
import CONF_HEATER, PLATFORMS
13 """Set up from a config entry."""
18 entry.options[CONF_HEATER],
20 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
21 entry.async_on_unload(entry.add_update_listener(config_entry_update_listener))
26 """Update listener, called when the config entry options are changed."""
27 await hass.config_entries.async_reload(entry.entry_id)
31 """Unload a config entry."""
32 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
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)
None async_remove_stale_devices_links_keep_entity_device(HomeAssistant hass, str entry_id, str source_entity_id_or_uuid)