From 3920de7119bec088f72d4612ebde95563fc6b805 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 4 Mar 2018 18:31:29 -0800 Subject: [PATCH] Fix async method call in sync context (#12890) --- homeassistant/components/device_tracker/icloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/icloud.py b/homeassistant/components/device_tracker/icloud.py index 7ca8a5cb232..781e3674550 100644 --- a/homeassistant/components/device_tracker/icloud.py +++ b/homeassistant/components/device_tracker/icloud.py @@ -330,7 +330,7 @@ class Icloud(DeviceScanner): return zones = (self.hass.states.get(entity_id) for entity_id - in sorted(self.hass.states.async_entity_ids('zone'))) + in sorted(self.hass.states.entity_ids('zone'))) distances = [] for zone_state in zones: