Update Amcrest component to SUPPORT_STREAM (#22553)
* Update camera.py Update Amcrest component to SUPPORT_STREAM to allow streaming in the UI and Google Assistant. * Update camera.py
This commit is contained in:
parent
8af70d5d19
commit
a71fcfb6e5
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
|||
import asyncio
|
||||
import logging
|
||||
|
||||
from homeassistant.components.camera import Camera
|
||||
from homeassistant.components.camera import (
|
||||
Camera, SUPPORT_STREAM)
|
||||
from homeassistant.components.ffmpeg import DATA_FFMPEG
|
||||
from homeassistant.const import CONF_NAME
|
||||
from homeassistant.helpers.aiohttp_client import (
|
||||
|
@ -98,6 +99,11 @@ class AmcrestCam(Camera):
|
|||
"""Return the name of this camera."""
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def supported_features(self):
|
||||
"""Return supported features."""
|
||||
return SUPPORT_STREAM
|
||||
|
||||
@property
|
||||
def stream_source(self):
|
||||
"""Return the source of the stream."""
|
||||
|
|
Loading…
Add table
Reference in a new issue