mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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):
|
if not entity_description.supported(reolink_data.host.api, channel):
|
||||||
continue
|
continue
|
||||||
stream_url = await reolink_data.host.api.get_stream_source(
|
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:
|
if stream_url is None and "snapshots" not in entity_description.stream:
|
||||||
continue
|
continue
|
||||||
|
@ -19,5 +19,5 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["reolink_aio"],
|
"loggers": ["reolink_aio"],
|
||||||
"quality_scale": "platinum",
|
"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:
|
def get_vod_type() -> VodRequestType:
|
||||||
if filename.endswith(".mp4"):
|
if filename.endswith(".mp4"):
|
||||||
|
if host.api.is_nvr:
|
||||||
|
return VodRequestType.DOWNLOAD
|
||||||
return VodRequestType.PLAYBACK
|
return VodRequestType.PLAYBACK
|
||||||
if host.api.is_nvr:
|
if host.api.is_nvr:
|
||||||
return VodRequestType.FLV
|
return VodRequestType.FLV
|
||||||
|
@ -567,6 +567,7 @@
|
|||||||
"stayoff": "Stay off",
|
"stayoff": "Stay off",
|
||||||
"auto": "[%key:component::reolink::entity::select::day_night_mode::state::auto%]",
|
"auto": "[%key:component::reolink::entity::select::day_night_mode::state::auto%]",
|
||||||
"alwaysonatnight": "Auto & always on at night",
|
"alwaysonatnight": "Auto & always on at night",
|
||||||
|
"always": "Always on",
|
||||||
"alwayson": "Always on"
|
"alwayson": "Always on"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2575,7 +2575,7 @@ renault-api==0.2.8
|
|||||||
renson-endura-delta==1.7.2
|
renson-endura-delta==1.7.2
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.11.5
|
reolink-aio==0.11.6
|
||||||
|
|
||||||
# homeassistant.components.idteck_prox
|
# homeassistant.components.idteck_prox
|
||||||
rfk101py==0.0.1
|
rfk101py==0.0.1
|
||||||
|
@ -2075,7 +2075,7 @@ renault-api==0.2.8
|
|||||||
renson-endura-delta==1.7.2
|
renson-endura-delta==1.7.2
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.11.5
|
reolink-aio==0.11.6
|
||||||
|
|
||||||
# homeassistant.components.rflink
|
# homeassistant.components.rflink
|
||||||
rflink==0.0.66
|
rflink==0.0.66
|
||||||
|
@ -109,11 +109,17 @@ async def test_resolve(
|
|||||||
)
|
)
|
||||||
assert play_media.mime_type == TEST_MIME_TYPE_MP4
|
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 = (
|
file_id = (
|
||||||
f"FILE|{config_entry.entry_id}|{TEST_CHANNEL}|{TEST_STREAM}|{TEST_FILE_NAME}"
|
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.get_vod_source.return_value = (TEST_MIME_TYPE, TEST_URL)
|
||||||
reolink_connect.is_nvr = False
|
|
||||||
|
|
||||||
play_media = await async_resolve_media(
|
play_media = await async_resolve_media(
|
||||||
hass, f"{URI_SCHEME}{DOMAIN}/{file_id}", None
|
hass, f"{URI_SCHEME}{DOMAIN}/{file_id}", None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user