Skip to content

Commit

Permalink
Remove unneeded list copy in icon helper (#110680)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Feb 15, 2024
1 parent 5f00e15 commit dd1cf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/helpers/icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def _async_load(self, components: set[str]) -> None:
)

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):
Expand Down

0 comments on commit dd1cf2c

Please sign in to comment.