1 """The threshold component."""
7 async_remove_stale_devices_links_keep_entity_device,
12 """Set up Min/Max from a config entry."""
17 entry.options[CONF_ENTITY_ID],
20 await hass.config_entries.async_forward_entry_setups(
21 entry, (Platform.BINARY_SENSOR,)
24 entry.async_on_unload(entry.add_update_listener(config_entry_update_listener))
30 """Update listener, called when the config entry options are changed."""
32 await hass.config_entries.async_reload(entry.entry_id)
36 """Unload a config entry."""
37 return await hass.config_entries.async_unload_platforms(
38 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)
None async_remove_stale_devices_links_keep_entity_device(HomeAssistant hass, str entry_id, str source_entity_id_or_uuid)