mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix async method call in sync context (#12890)
This commit is contained in:
@@ -330,7 +330,7 @@ class Icloud(DeviceScanner):
|
|||||||
return
|
return
|
||||||
|
|
||||||
zones = (self.hass.states.get(entity_id) for entity_id
|
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 = []
|
distances = []
|
||||||
for zone_state in zones:
|
for zone_state in zones:
|
||||||
|
Reference in New Issue
Block a user