Make sure Yi utilizes existing event loop (#15131)

This commit is contained in:
Aaron Bach 2018-06-24 19:09:08 -06:00 committed by GitHub
parent 5a71a22fb9
commit 021d08a9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)