forked from home-assistant/core
Make sure Yi utilizes existing event loop (#15131)
This commit is contained in:
@@ -77,7 +77,7 @@ class YiCamera(Camera):
|
|||||||
"""Retrieve the latest video file from the customized Yi FTP server."""
|
"""Retrieve the latest video file from the customized Yi FTP server."""
|
||||||
from aioftp import Client, StatusCodeError
|
from aioftp import Client, StatusCodeError
|
||||||
|
|
||||||
ftp = Client()
|
ftp = Client(loop=self.hass.loop)
|
||||||
try:
|
try:
|
||||||
await ftp.connect(self.host)
|
await ftp.connect(self.host)
|
||||||
await ftp.login(self.user, self.passwd)
|
await ftp.login(self.user, self.passwd)
|
||||||
|
Reference in New Issue
Block a user