Convert stream source to method (#23905)

* Convert stream source to method

* Use async with
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-05-23 09:45:30 -07:00
1 parent 8d22479d24
commit 1de0a0bbb9
10 files changed
+50 -39

No files matched your search

+1 -2
View File
@@ -77,8 +77,7 @@ class FoscamCam(Camera):
return SUPPORT_STREAM
return 0
@property
def stream_source(self):
async def stream_source(self):
"""Return the stream source."""
if self._rtsp_port:
return 'rtsp://{}:{}@{}:{}/videoMain'.format(