diff --git a/supervisor/backups/manager.py b/supervisor/backups/manager.py index e817cc45e59..cf0f825d89a 100644 --- a/supervisor/backups/manager.py +++ b/supervisor/backups/manager.py @@ -263,9 +263,9 @@ def remove( """Remove a backup.""" targets = ( [ - self._get_location_name(location) + location_name for location in locations - if location in backup.all_locations + if (location_name := self._get_location_name(location)) in backup.all_locations ] if locations else list(backup.all_locations.keys())