mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Remove unneeded list copy in icon helper (#110680)
This commit is contained in:
parent
5f00e15d35
commit
dd1cf2c593
@ -110,7 +110,7 @@ class _IconsCache:
|
|||||||
)
|
)
|
||||||
|
|
||||||
integrations: dict[str, Integration] = {}
|
integrations: dict[str, Integration] = {}
|
||||||
domains = list({loaded.rpartition(".")[-1] for loaded in components})
|
domains = {loaded.rpartition(".")[-1] for loaded in components}
|
||||||
ints_or_excs = await async_get_integrations(self._hass, domains)
|
ints_or_excs = await async_get_integrations(self._hass, domains)
|
||||||
for domain, int_or_exc in ints_or_excs.items():
|
for domain, int_or_exc in ints_or_excs.items():
|
||||||
if isinstance(int_or_exc, Exception):
|
if isinstance(int_or_exc, Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user