Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Release 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevansighem committed Dec 27, 2021
1 parent 15447e7 commit 306fbd2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion dropbox_backup/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- markdown-link-check-disable -->

## [0.5.4](https://github.com/mikevansighem/dropbox-backup/releases/tag/0.5.4) - 2021-12-24
## [0.5.5](https://github.com/mikevansighem/dropbox-backup/releases/tag/0.5.5) - 2021-12-27

<!-- markdown-link-check-enable -->

### Changed

- Fix bug in uploader.

## [0.5.4](https://github.com/mikevansighem/dropbox-backup/releases/tag/0.5.4) - 2021-12-24

### Changed

- Improved log messages.

### Added
Expand Down
2 changes: 1 addition & 1 deletion dropbox_backup/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Dropbox backup
version: "0.5.4"
version: "0.5.5"
slug: dropbox-backup
description: "Upload your Home Assistant backups to Dropbox"
url: https://github.com/mikevansighem/dropbox-backup
Expand Down
6 changes: 3 additions & 3 deletions dropbox_backup/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def upload_file(dbx, file, target):


# Take backups from hass and define set paths.
def make_backup_path(hass_backup_list, output_dir, preserve_filename=False):
def make_backup_path(hass_backup_list, output_dir, preserve_filename):

upload_list = []

Expand All @@ -94,7 +94,7 @@ def make_backup_path(hass_backup_list, output_dir, preserve_filename=False):
return upload_list


def main(token, output_dir):
def main(token, output_dir, preserve_filename):

# Check for an access token
if (len(token) == 0):
Expand All @@ -109,7 +109,7 @@ def main(token, output_dir):
hass_backup_list = backup_info.json()["data"]["backups"]

# Format the file paths
upload_list = make_backup_path(hass_backup_list, output_dir)
upload_list = make_backup_path(hass_backup_list, output_dir, preserve_filename)

# Check if there are any files to upload
if (len(upload_list) == 0):
Expand Down

0 comments on commit 306fbd2

Please sign in to comment.