1 """The Derivative integration."""
3 from __future__
import annotations
9 async_remove_stale_devices_links_keep_entity_device,
14 """Set up Derivative from a config entry."""
17 hass, entry.entry_id, entry.options[CONF_SOURCE]
20 await hass.config_entries.async_forward_entry_setups(entry, (Platform.SENSOR,))
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, (Platform.SENSOR,))
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
None config_entry_update_listener(HomeAssistant hass, ConfigEntry entry)
None async_remove_stale_devices_links_keep_entity_device(HomeAssistant hass, str entry_id, str source_entity_id_or_uuid)