Fix async method call in sync context (#12890)
This commit is contained in:
1 parent
fd409a16a1
commit
3920de7119
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user