Make sure Yi utilizes existing event loop (#15131)
This commit is contained in:
parent
5a71a22fb9
commit
021d08a9c4
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class YiCamera(Camera):
|
|||
"""Retrieve the latest video file from the customized Yi FTP server."""
|
||||
from aioftp import Client, StatusCodeError
|
||||
|
||||
ftp = Client()
|
||||
ftp = Client(loop=self.hass.loop)
|
||||
try:
|
||||
await ftp.connect(self.host)
|
||||
await ftp.login(self.user, self.passwd)
|
||||
|
|
Loading…
Add table
Reference in a new issue