Air visual : robustness at startup when evaluate time interval (#59544)
This commit is contained in:
parent
28a0ba4df3
commit
512bdac724
1 changed files with 2 additions and 1 deletions
|
@ -104,9 +104,10 @@ def async_get_cloud_coordinators_by_api_key(
|
|||
) -> list[DataUpdateCoordinator]:
|
||||
"""Get all DataUpdateCoordinator objects related to a particular API key."""
|
||||
return [
|
||||
attrs[DATA_COORDINATOR]
|
||||
coordinator
|
||||
for entry_id, attrs in hass.data[DOMAIN].items()
|
||||
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
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue