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
pull/22554/head
drjared88 2019-03-29 21:53:01 -06:00 committed by Paulus Schoutsen
parent b04fd08cea
commit fe8e51e2e9
1 changed files with 7 additions and 1 deletions

View File

@ -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."""