From 021d08a9c46bf3ff32f4c6fbc632757006611a33 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Sun, 24 Jun 2018 19:09:08 -0600 Subject: [PATCH] Make sure Yi utilizes existing event loop (#15131) --- homeassistant/components/camera/yi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/camera/yi.py b/homeassistant/components/camera/yi.py index 93f526c2b96..b575a705f98 100644 --- a/homeassistant/components/camera/yi.py +++ b/homeassistant/components/camera/yi.py @@ -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)