Remove unneeded list copy in icon helper (#110680)

This commit is contained in:
J. Nick Koston 2024-02-15 16:33:24 -06:00 committed by GitHub
parent 5f00e15d35
commit dd1cf2c593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ class _IconsCache:
)
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)
for domain, int_or_exc in ints_or_excs.items():
if isinstance(int_or_exc, Exception):