mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Bump reolink-aio to 0.11.6 (#134286)
This commit is contained in:
parent
277ee03145
commit
4a9d545ffe
@ -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
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
},
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user