Skip to content

Commit

Permalink
work around formatter bug hhatto/autopep8#712
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Noe committed Jan 16, 2024
1 parent 07e194a commit bef1704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def run_backup():
hass_response = requests.post(
url=api_path, headers=hass_api_headers, json=hass_payload)
if hass_response.status_code != 200:
logging.info(f'Failed to update Home-Assistant State with
{hass_response.status_code} - {hass_response.json}')
logging.info('Failed to update Home-Assistant State with ' +
hass_response.status_code + ' - ' + hass_response.json)
except OSError:
logging.info('Failed to update Home-Assistant State')
logging.info('Backup process ended')
Expand Down

0 comments on commit bef1704

Please sign in to comment.