diff --git a/homeassistant/components/unifiprotect/__init__.py b/homeassistant/components/unifiprotect/__init__.py index 649d62c6fee..174c5476cff 100644 --- a/homeassistant/components/unifiprotect/__init__.py +++ b/homeassistant/components/unifiprotect/__init__.py @@ -102,8 +102,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, data_service.async_stop) ) - protect_version = data_service.api.bootstrap.nvr.version - if protect_version.is_prerelease: + if await data_service.api.bootstrap.get_is_prerelease(): + protect_version = data_service.api.bootstrap.nvr.version ir.async_create_issue( hass, DOMAIN, diff --git a/homeassistant/components/unifiprotect/manifest.json b/homeassistant/components/unifiprotect/manifest.json index ae37360c5ee..62baf74b6a7 100644 --- a/homeassistant/components/unifiprotect/manifest.json +++ b/homeassistant/components/unifiprotect/manifest.json @@ -1,9 +1,10 @@ { "domain": "unifiprotect", "name": "UniFi Protect", + "integration_type": "hub", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/unifiprotect", - "requirements": ["pyunifiprotect==4.3.4", "unifi-discovery==1.1.7"], + "requirements": ["pyunifiprotect==4.4.0", "unifi-discovery==1.1.7"], "dependencies": ["http"], "codeowners": ["@briis", "@AngellusMortis", "@bdraco"], "quality_scale": "platinum", diff --git a/homeassistant/components/unifiprotect/strings.json b/homeassistant/components/unifiprotect/strings.json index 2967ba8c82e..5c9416440de 100644 --- a/homeassistant/components/unifiprotect/strings.json +++ b/homeassistant/components/unifiprotect/strings.json @@ -57,8 +57,8 @@ }, "issues": { "ea_warning": { - "title": "{version} is an Early Access version of UniFi Protect", - "description": "You are using {version} of UniFi Protect. Early Access versions are not supported by Home Assistant and may cause your UniFi Protect integration to break or not work as expected." + "title": "UniFi Protect v{version} is an Early Access version", + "description": "You are using v{version} of UniFi Protect which is an Early Access version. Early Access versions are not supported by Home Assistant and may cause your UniFi Protect integration to break or not work as expected." } } } diff --git a/homeassistant/components/unifiprotect/translations/en.json b/homeassistant/components/unifiprotect/translations/en.json index 3b6e74db341..03362629879 100644 --- a/homeassistant/components/unifiprotect/translations/en.json +++ b/homeassistant/components/unifiprotect/translations/en.json @@ -43,20 +43,16 @@ }, "issues": { "ea_warning": { - "description": "You are using {version} of UniFi Protect. Early Access versions are not supported by Home Assistant and may cause your UniFi Protect integration to break or not work as expected.", - "title": "{version} is an Early Access version of UniFi Protect" + "description": "You are using v{version} of UniFi Protect which is an Early Access version. Early Access versions are not supported by Home Assistant and may cause your UniFi Protect integration to break or not work as expected.", + "title": "UniFi Protect v{version} is an Early Access version" } }, "options": { - "error": { - "invalid_mac_list": "Must be a list of MAC addresses seperated by commas" - }, "step": { "init": { "data": { "all_updates": "Realtime metrics (WARNING: Greatly increases CPU usage)", "disable_rtsp": "Disable the RTSP stream", - "ignored_devices": "Comma separated list of MAC addresses of devices to ignore", "max_media": "Max number of event to load for Media Browser (increases RAM usage)", "override_connection_host": "Override Connection Host" }, diff --git a/requirements_all.txt b/requirements_all.txt index ef90ca110e9..08c7fa7a7ac 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2084,7 +2084,7 @@ pytrafikverket==0.2.1 pyudev==0.23.2 # homeassistant.components.unifiprotect -pyunifiprotect==4.3.4 +pyunifiprotect==4.4.0 # homeassistant.components.uptimerobot pyuptimerobot==22.2.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 010ff5a6b7d..34c694a23f3 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1447,7 +1447,7 @@ pytrafikverket==0.2.1 pyudev==0.23.2 # homeassistant.components.unifiprotect -pyunifiprotect==4.3.4 +pyunifiprotect==4.4.0 # homeassistant.components.uptimerobot pyuptimerobot==22.2.0