Don't copy result to new list (#52248)

pull/52255/head
Joakim Sørensen 2021-06-28 15:54:23 +02:00 committed by GitHub
parent c86b563fe1
commit efee36a176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
)