mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bump reolink_aio to 0.8.5 (#106747)
This commit is contained in:
parent
82b15d9e38
commit
95f6336ecd
@ -18,5 +18,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/reolink",
|
"documentation": "https://www.home-assistant.io/integrations/reolink",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["reolink_aio"],
|
"loggers": ["reolink_aio"],
|
||||||
"requirements": ["reolink-aio==0.8.4"]
|
"requirements": ["reolink-aio==0.8.5"]
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,8 @@ from __future__ import annotations
|
|||||||
import datetime as dt
|
import datetime as dt
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from reolink_aio.enums import VodRequestType
|
||||||
|
|
||||||
from homeassistant.components.camera import DOMAIN as CAM_DOMAIN, DynamicStreamSettings
|
from homeassistant.components.camera import DOMAIN as CAM_DOMAIN, DynamicStreamSettings
|
||||||
from homeassistant.components.media_player import MediaClass, MediaType
|
from homeassistant.components.media_player import MediaClass, MediaType
|
||||||
from homeassistant.components.media_source.error import Unresolvable
|
from homeassistant.components.media_source.error import Unresolvable
|
||||||
@ -56,7 +58,14 @@ class ReolinkVODMediaSource(MediaSource):
|
|||||||
channel = int(channel_str)
|
channel = int(channel_str)
|
||||||
|
|
||||||
host = self.data[config_entry_id].host
|
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):
|
if _LOGGER.isEnabledFor(logging.DEBUG):
|
||||||
url_log = f"{url.split('&user=')[0]}&user=xxxxx&password=xxxxx"
|
url_log = f"{url.split('&user=')[0]}&user=xxxxx&password=xxxxx"
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
|
@ -2379,7 +2379,7 @@ renault-api==0.2.1
|
|||||||
renson-endura-delta==1.7.1
|
renson-endura-delta==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.8.4
|
reolink-aio==0.8.5
|
||||||
|
|
||||||
# homeassistant.components.idteck_prox
|
# homeassistant.components.idteck_prox
|
||||||
rfk101py==0.0.1
|
rfk101py==0.0.1
|
||||||
|
@ -1798,7 +1798,7 @@ renault-api==0.2.1
|
|||||||
renson-endura-delta==1.7.1
|
renson-endura-delta==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.8.4
|
reolink-aio==0.8.5
|
||||||
|
|
||||||
# homeassistant.components.rflink
|
# homeassistant.components.rflink
|
||||||
rflink==0.0.65
|
rflink==0.0.65
|
||||||
|
Loading…
x
Reference in New Issue
Block a user