Bump reolink-aio to 0.11.6 (#134286)

This commit is contained in:
starkillerOG 2024-12-31 10:31:40 +01:00 committed by GitHub
parent 277ee03145
commit 4a9d545ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 14 additions and 5 deletions

View File

@ -100,7 +100,7 @@ async def async_setup_entry(
if not entity_description.supported(reolink_data.host.api, channel):
continue
stream_url = await reolink_data.host.api.get_stream_source(
channel, entity_description.stream
channel, entity_description.stream, False
)
if stream_url is None and "snapshots" not in entity_description.stream:
continue

View File

@ -19,5 +19,5 @@
"iot_class": "local_push",
"loggers": ["reolink_aio"],
"quality_scale": "platinum",
"requirements": ["reolink-aio==0.11.5"]
"requirements": ["reolink-aio==0.11.6"]
}

View File

@ -81,6 +81,8 @@ class ReolinkVODMediaSource(MediaSource):
def get_vod_type() -> VodRequestType:
if filename.endswith(".mp4"):
if host.api.is_nvr:
return VodRequestType.DOWNLOAD
return VodRequestType.PLAYBACK
if host.api.is_nvr:
return VodRequestType.FLV

View File

@ -567,6 +567,7 @@
"stayoff": "Stay off",
"auto": "[%key:component::reolink::entity::select::day_night_mode::state::auto%]",
"alwaysonatnight": "Auto & always on at night",
"always": "Always on",
"alwayson": "Always on"
}
},

View File

@ -2575,7 +2575,7 @@ renault-api==0.2.8
renson-endura-delta==1.7.2
# homeassistant.components.reolink
reolink-aio==0.11.5
reolink-aio==0.11.6
# homeassistant.components.idteck_prox
rfk101py==0.0.1

View File

@ -2075,7 +2075,7 @@ renault-api==0.2.8
renson-endura-delta==1.7.2
# homeassistant.components.reolink
reolink-aio==0.11.5
reolink-aio==0.11.6
# homeassistant.components.rflink
rflink==0.0.66

View File

@ -109,11 +109,17 @@ async def test_resolve(
)
assert play_media.mime_type == TEST_MIME_TYPE_MP4
reolink_connect.is_nvr = False
play_media = await async_resolve_media(
hass, f"{URI_SCHEME}{DOMAIN}/{file_id}", None
)
assert play_media.mime_type == TEST_MIME_TYPE_MP4
file_id = (
f"FILE|{config_entry.entry_id}|{TEST_CHANNEL}|{TEST_STREAM}|{TEST_FILE_NAME}"
)
reolink_connect.get_vod_source.return_value = (TEST_MIME_TYPE, TEST_URL)
reolink_connect.is_nvr = False
play_media = await async_resolve_media(
hass, f"{URI_SCHEME}{DOMAIN}/{file_id}", None