Bump reolink_aio to 0.8.5 (#106747)

pull/106749/head
starkillerOG 2023-12-31 00:45:05 +01:00 committed by GitHub
parent 82b15d9e38
commit 95f6336ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View File

@ -18,5 +18,5 @@
"documentation": "https://www.home-assistant.io/integrations/reolink",
"iot_class": "local_push",
"loggers": ["reolink_aio"],
"requirements": ["reolink-aio==0.8.4"]
"requirements": ["reolink-aio==0.8.5"]
}

View File

@ -5,6 +5,8 @@ from __future__ import annotations
import datetime as dt
import logging
from reolink_aio.enums import VodRequestType
from homeassistant.components.camera import DOMAIN as CAM_DOMAIN, DynamicStreamSettings
from homeassistant.components.media_player import MediaClass, MediaType
from homeassistant.components.media_source.error import Unresolvable
@ -56,7 +58,14 @@ class ReolinkVODMediaSource(MediaSource):
channel = int(channel_str)
host = self.data[config_entry_id].host
mime_type, url = await host.api.get_vod_source(channel, filename, stream_res)
vod_type = VodRequestType.RTMP
if host.api.is_nvr:
vod_type = VodRequestType.FLV
mime_type, url = await host.api.get_vod_source(
channel, filename, stream_res, vod_type
)
if _LOGGER.isEnabledFor(logging.DEBUG):
url_log = f"{url.split('&user=')[0]}&user=xxxxx&password=xxxxx"
_LOGGER.debug(

View File

@ -2379,7 +2379,7 @@ renault-api==0.2.1
renson-endura-delta==1.7.1
# homeassistant.components.reolink
reolink-aio==0.8.4
reolink-aio==0.8.5
# homeassistant.components.idteck_prox
rfk101py==0.0.1

View File

@ -1798,7 +1798,7 @@ renault-api==0.2.1
renson-endura-delta==1.7.1
# homeassistant.components.reolink
reolink-aio==0.8.4
reolink-aio==0.8.5
# homeassistant.components.rflink
rflink==0.0.65