mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Make sure Yi utilizes existing event loop (#15131)
This commit is contained in:
parent
5a71a22fb9
commit
021d08a9c4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user