diff --git a/homeassistant/components/unifiprotect/manifest.json b/homeassistant/components/unifiprotect/manifest.json index 95fb860013570..b369b91264d99 100644 --- a/homeassistant/components/unifiprotect/manifest.json +++ b/homeassistant/components/unifiprotect/manifest.json @@ -40,7 +40,7 @@ "integration_type": "hub", "iot_class": "local_push", "loggers": ["uiprotect", "unifi_discovery"], - "requirements": ["uiprotect==5.2.0", "unifi-discovery==1.2.0"], + "requirements": ["uiprotect==5.2.2", "unifi-discovery==1.2.0"], "ssdp": [ { "manufacturer": "Ubiquiti Networks", diff --git a/homeassistant/components/unifiprotect/number.py b/homeassistant/components/unifiprotect/number.py index a0d360af80bdd..4bb5cba6f15a2 100644 --- a/homeassistant/components/unifiprotect/number.py +++ b/homeassistant/components/unifiprotect/number.py @@ -53,7 +53,7 @@ async def _set_auto_close(obj: Doorlock, value: float) -> None: def _get_chime_duration(obj: Camera) -> int: - return int(obj.chime_duration.total_seconds()) + return int(obj.chime_duration_seconds) CAMERA_NUMBERS: tuple[ProtectNumberEntityDescription, ...] = ( diff --git a/requirements_all.txt b/requirements_all.txt index b086edd36c425..7c7fc152fd6cf 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2792,7 +2792,7 @@ twitchAPI==4.0.0 uasiren==0.0.1 # homeassistant.components.unifiprotect -uiprotect==5.2.0 +uiprotect==5.2.2 # homeassistant.components.landisgyr_heat_meter ultraheat-api==0.5.7 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 396ba24aa99dd..c6937d2e23a0e 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2172,7 +2172,7 @@ twitchAPI==4.0.0 uasiren==0.0.1 # homeassistant.components.unifiprotect -uiprotect==5.2.0 +uiprotect==5.2.2 # homeassistant.components.landisgyr_heat_meter ultraheat-api==0.5.7