mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Don't copy result to new list (#52248)
This commit is contained in:
parent
c86b563fe1
commit
efee36a176
@ -697,7 +697,7 @@ class HassioDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
# If there are new add-ons, we should reload the config entry so we can
|
||||
# create new devices and entities. We can return an empty dict because
|
||||
# coordinator will be recreated.
|
||||
if self.data and list(set(new_data["addons"]) - set(self.data["addons"])):
|
||||
if self.data and set(new_data["addons"]) - set(self.data["addons"]):
|
||||
self.hass.async_create_task(
|
||||
self.hass.config_entries.async_reload(self.entry_id)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user