diff --git a/custom_components/gtfs2/gtfs_helper.py b/custom_components/gtfs2/gtfs_helper.py index bfd8ecb..41fc239 100644 --- a/custom_components/gtfs2/gtfs_helper.py +++ b/custom_components/gtfs2/gtfs_helper.py @@ -550,6 +550,8 @@ def remove_datasource(hass, path, filename): os.remove(os.path.join(gtfs_dir, filename + "_temp_out.zip")) if os.path.exists(os.path.join(gtfs_dir, filename + ".sqlite-journal")): os.remove(os.path.join(gtfs_dir, filename + ".sqlite-journal")) + if os.path.exists(os.path.join(gtfs_dir, filename + ".zip")): + os.remove(os.path.join(gtfs_dir, filename + ".zip")) return "removed" def check_extracting(hass, gtfs_dir,file):