1 """The min_max component."""
7 PLATFORMS = [Platform.SENSOR]
11 """Set up Min/Max from a config entry."""
12 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
14 entry.async_on_unload(entry.add_update_listener(config_entry_update_listener))
20 """Update listener, called when the config entry options are changed."""
21 await hass.config_entries.async_reload(entry.entry_id)
25 """Unload a config entry."""
26 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
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)