1 """The statistics component."""
7 async_remove_stale_devices_links_keep_entity_device,
11 PLATFORMS = [Platform.SENSOR]
15 """Set up Statistics from a config entry."""
20 entry.options[CONF_ENTITY_ID],
23 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
24 entry.async_on_unload(entry.add_update_listener(update_listener))
30 """Unload Statistics config entry."""
31 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
35 """Handle options update."""
36 await hass.config_entries.async_reload(entry.entry_id)
None 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)