Skip to content

Commit 855b3d5

Browse files
committed
Make it possible specify stream host and port
1 parent 09a5e79 commit 855b3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blinkpy/livestream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def get_auth_header(self):
9797
_LOGGER.debug("Auth header length: %d", len(auth_header))
9898
return auth_header
9999

100-
async def start(self):
100+
async def start(self, host="127.0.0.1", port=None):
101101
"""Start the stream."""
102-
self.server = await asyncio.start_server(self.join, "127.0.0.1")
102+
self.server = await asyncio.start_server(self.join, host, port)
103103
return self.server
104104

105105
@property

0 commit comments

Comments
 (0)