mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix async method call in sync context (#12890)
This commit is contained in:
parent
fd409a16a1
commit
3920de7119
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user