mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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
|
# 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
|
# create new devices and entities. We can return an empty dict because
|
||||||
# coordinator will be recreated.
|
# 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.async_create_task(
|
||||||
self.hass.config_entries.async_reload(self.entry_id)
|
self.hass.config_entries.async_reload(self.entry_id)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user