Bump reolink_aio to 0.21.17 (#182472)

This commit is contained in:
starkillerOG
2026-09-18 11:11:31 +00:00
committed by Franck Nijhof
parent a58cb2efda
commit c0f2e3434f
6 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -83,14 +83,14 @@ CAMERA_ENTITIES = (
key="autotrack_snapshots_sub",
stream="autotrack_snapshots_sub",
translation_key="telephoto_snapshots_sub",
supported=lambda api, ch: api.supported(ch, "autotrack_stream"),
supported=lambda api, ch: api.supported(ch, "autotrack_snapshot"),
entity_registry_enabled_default=False,
),
ReolinkCameraEntityDescription(
key="autotrack_snapshots_main",
stream="autotrack_snapshots_main",
translation_key="telephoto_snapshots_main",
supported=lambda api, ch: api.supported(ch, "autotrack_stream"),
supported=lambda api, ch: api.supported(ch, "autotrack_snapshot"),
entity_registry_enabled_default=False,
),
)
@@ -20,5 +20,5 @@
"iot_class": "local_push",
"loggers": ["reolink_aio"],
"quality_scale": "platinum",
"requirements": ["reolink-aio==0.21.16"]
"requirements": ["reolink-aio==0.21.17"]
}
+4 -4
View File
@@ -165,8 +165,8 @@ NUMBER_ENTITIES = (
entity_registry_enabled_default=False,
native_step=1,
native_unit_of_measurement=UnitOfTime.SECONDS,
native_min_value=30,
native_max_value=900,
get_min_value=lambda api, ch: api.whiteled_event_on_time_range(ch)[0],
get_max_value=lambda api, ch: api.whiteled_event_on_time_range(ch)[1],
supported=lambda api, ch: api.supported(ch, "floodlight_event"),
value=lambda api, ch: api.whiteled_event_on_time(ch),
method=lambda api, ch, value: api.baichuan.set_floodlight(
@@ -183,8 +183,8 @@ NUMBER_ENTITIES = (
entity_registry_enabled_default=False,
native_step=1,
native_unit_of_measurement=UnitOfTime.SECONDS,
native_min_value=10,
native_max_value=30,
get_min_value=lambda api, ch: api.whiteled_event_flash_time_range(ch)[0],
get_max_value=lambda api, ch: api.whiteled_event_flash_time_range(ch)[1],
supported=lambda api, ch: api.supported(ch, "floodlight_event"),
value=lambda api, ch: api.whiteled_event_flash_time(ch),
method=lambda api, ch, value: api.baichuan.set_floodlight(
@@ -555,6 +555,7 @@
"state": {
"adaptive": "Adaptive",
"auto": "[%key:common::state::auto%]",
"auto_pir": "Auto PIR",
"autoadaptive": "Auto adaptive",
"off": "[%key:common::state::off%]",
"onatnight": "On at night",
+1 -1
View File
@@ -2956,7 +2956,7 @@ renault-api==0.5.13
renson-endura-delta==1.7.2
# homeassistant.components.reolink
reolink-aio==0.21.16
reolink-aio==0.21.17
# homeassistant.components.radio_frequency
rf-protocols==4.3.0
+2
View File
@@ -181,6 +181,8 @@ def _init_host_mock(host_mock: MagicMock) -> None:
"zoom": {"min": 0, "max": 100},
"focus": {"min": 0, "max": 100},
}
host_mock.whiteled_event_on_time_range.return_value = (30, 900)
host_mock.whiteled_event_flash_time_range.return_value = (10, 30)
host_mock.capabilities = {"Host": ["RTSP"], "0": ["motion_detection"]}
host_mock.checked_api_versions = {"GetEvents": 1}
host_mock.abilities = {"abilityChn": [{"aiTrack": {"permit": 0, "ver": 0}}]}