mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 03:07:50 +00:00
Always set use wallclock as timestamps in ezviz (#71984)
This commit is contained in:
parent
79fb5e1bec
commit
f965f542a3
@ -9,6 +9,7 @@ import voluptuous as vol
|
|||||||
from homeassistant.components import ffmpeg
|
from homeassistant.components import ffmpeg
|
||||||
from homeassistant.components.camera import Camera, CameraEntityFeature
|
from homeassistant.components.camera import Camera, CameraEntityFeature
|
||||||
from homeassistant.components.ffmpeg import get_ffmpeg_manager
|
from homeassistant.components.ffmpeg import get_ffmpeg_manager
|
||||||
|
from homeassistant.components.stream import CONF_USE_WALLCLOCK_AS_TIMESTAMPS
|
||||||
from homeassistant.config_entries import (
|
from homeassistant.config_entries import (
|
||||||
SOURCE_IGNORE,
|
SOURCE_IGNORE,
|
||||||
SOURCE_INTEGRATION_DISCOVERY,
|
SOURCE_INTEGRATION_DISCOVERY,
|
||||||
@ -186,6 +187,7 @@ class EzvizCamera(EzvizEntity, Camera):
|
|||||||
"""Initialize a Ezviz security camera."""
|
"""Initialize a Ezviz security camera."""
|
||||||
super().__init__(coordinator, serial)
|
super().__init__(coordinator, serial)
|
||||||
Camera.__init__(self)
|
Camera.__init__(self)
|
||||||
|
self.stream_options[CONF_USE_WALLCLOCK_AS_TIMESTAMPS] = True
|
||||||
self._username = camera_username
|
self._username = camera_username
|
||||||
self._password = camera_password
|
self._password = camera_password
|
||||||
self._rtsp_stream = camera_rtsp_stream
|
self._rtsp_stream = camera_rtsp_stream
|
||||||
|
Loading…
x
Reference in New Issue
Block a user