1 """The MJPEG IP Camera integration."""
8 from .camera
import MjpegCamera
9 from .const
import CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, DOMAIN, PLATFORMS
10 from .util
import filter_urllib3_logging
14 "CONF_STILL_IMAGE_URL",
16 "filter_urllib3_logging",
19 CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
22 async
def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
23 """Set up the MJPEG IP Camera integration."""
29 """Set up from a config entry."""
30 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
33 entry.async_on_unload(entry.add_update_listener(async_reload_entry))
39 """Unload a config entry."""
40 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
44 """Reload the config entry when it changed."""
45 await hass.config_entries.async_reload(entry.entry_id)
None filter_urllib3_logging()
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup(HomeAssistant hass, ConfigType config)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
None async_reload_entry(HomeAssistant hass, ConfigEntry entry)