1
mirror of https://github.com/home-assistant/core synced 2024-10-04 07:58:43 +02:00

Add stream source for amcrest component (#21983)

This commit is contained in:
Daniel Shokouhi 2019-03-12 18:40:24 -07:00 committed by Jason Hunter
parent e618e2f348
commit d66cc9befa

View File

@ -97,3 +97,8 @@ class AmcrestCam(Camera):
def name(self):
"""Return the name of this camera."""
return self._name
@property
def stream_source(self):
"""Return the source of the stream."""
return self._camera.rtsp_url(typeno=self._resolution)