From 456ff4e84b6a6b2160921824e62911f5e09573a4 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 15 Mar 2018 13:53:59 -0700 Subject: [PATCH] Tado: don't reference unset hass var (#13237) Tado: don't reference unset hass var --- homeassistant/components/device_tracker/tado.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/tado.py b/homeassistant/components/device_tracker/tado.py index 11d12322ff5..ef816338ce9 100644 --- a/homeassistant/components/device_tracker/tado.py +++ b/homeassistant/components/device_tracker/tado.py @@ -100,7 +100,7 @@ class TadoDeviceScanner(DeviceScanner): last_results = [] try: - with async_timeout.timeout(10, loop=self.hass.loop): + with async_timeout.timeout(10): # Format the URL here, so we can log the template URL if # anything goes wrong without exposing username and password. url = self.tadoapiurl.format(