1 """A sensor that monitors trends in other components."""
3 from __future__
import annotations
9 async_remove_stale_devices_links_keep_entity_device,
12 PLATFORMS = [Platform.BINARY_SENSOR]
16 """Set up Trend from a config entry."""
21 entry.options[CONF_ENTITY_ID],
24 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
25 entry.async_on_unload(entry.add_update_listener(config_entry_update_listener))
31 """Handle an Trend options update."""
32 await hass.config_entries.async_reload(entry.entry_id)
36 """Unload a config entry."""
37 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)