mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Air visual : robustness at startup when evaluate time interval (#59544)
This commit is contained in:
parent
28a0ba4df3
commit
512bdac724
@ -104,9 +104,10 @@ def async_get_cloud_coordinators_by_api_key(
|
|||||||
) -> list[DataUpdateCoordinator]:
|
) -> list[DataUpdateCoordinator]:
|
||||||
"""Get all DataUpdateCoordinator objects related to a particular API key."""
|
"""Get all DataUpdateCoordinator objects related to a particular API key."""
|
||||||
return [
|
return [
|
||||||
attrs[DATA_COORDINATOR]
|
coordinator
|
||||||
for entry_id, attrs in hass.data[DOMAIN].items()
|
for entry_id, attrs in hass.data[DOMAIN].items()
|
||||||
if (entry := hass.config_entries.async_get_entry(entry_id))
|
if (entry := hass.config_entries.async_get_entry(entry_id))
|
||||||
|
and (coordinator := attrs.get(DATA_COORDINATOR))
|
||||||
and entry.data.get(CONF_API_KEY) == api_key
|
and entry.data.get(CONF_API_KEY) == api_key
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user