Convert stream source to method (#23905)
* Convert stream source to method * Use async with
This commit is contained in:
1 parent
8d22479d24
commit
1de0a0bbb9
10 files changed
+50
-39
No files matched your search
@@ -58,8 +58,7 @@ class AxisCamera(AxisEntityBase, MjpegCamera):
|
||||
"""Return supported features."""
|
||||
return SUPPORT_STREAM
|
||||
|
||||
@property
|
||||
def stream_source(self):
|
||||
async def stream_source(self):
|
||||
"""Return the stream source."""
|
||||
return AXIS_STREAM.format(
|
||||
self.device.config_entry.data[CONF_DEVICE][CONF_USERNAME],
|
||||
|
||||
Reference in new issue
Block a user