Fix using wrong log level from bashio. Fixes #3917 (#3918)

* Fix using wrong log level from bashio. Fixes #3917

* Add changelog and bump version
This commit is contained in:
Fabian Jonassen
2025-02-06 18:30:42 +01:00
committed by GitHub
parent 689e540d5a
commit 1d46593880
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 8.0.1
- Fix bashio warn(ing) logger usage breaking deployment keys
## 8.0.0
- Refactor git_pull to use HA Api with bashio
- Update base image to Alpine 3.21

View File

@ -1,5 +1,5 @@
---
version: 8.0.0
version: 8.0.1
slug: git_pull
name: Git pull
description: Simple git pull to update the local configuration

View File

@ -72,7 +72,7 @@ if [ -n "$DEPLOYMENT_KEY" ]; then
if OUTPUT_CHECK=$(ssh -T -o "StrictHostKeyChecking=no" -o "BatchMode=yes" "$DOMAIN" 2>&1) || { [[ $DOMAIN = *"@github.com"* ]] && [[ $OUTPUT_CHECK = *"You've successfully authenticated"* ]]; }; then
bashio::log.info "[Info] Valid SSH connection for $DOMAIN"
else
bashio::log.warn "[Warn] No valid SSH connection for $DOMAIN"
bashio::log.warning "[Warn] No valid SSH connection for $DOMAIN"
add-ssh-key
fi
fi
@ -118,7 +118,7 @@ fi
function git-synchronize {
# is /config a local git repo?
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
bashio::log.warn "[Warn] Git repository doesn't exist"
bashio::log.warning "[Warn] Git repository doesn't exist"
git-clone
return
fi