mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-08 09:51:49 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
a18a505bfb
commit
2ca436f8e8
@@ -48,9 +48,9 @@ if export "$(grep "^DATABASE_LANG" /config/birdnet.conf)"; then
|
||||
export "$(grep "^MODEL" /config/birdnet.conf)"
|
||||
bashio::log.info "Setting language to ${DATABASE_LANG:-en}"
|
||||
if [ "$MODEL" == "BirdNET_GLOBAL_6K_V2.4_Model_FP16" ]; then
|
||||
BASEDIR=labels_nm
|
||||
BASEDIR=labels_nm
|
||||
else
|
||||
BASEDIR=labels_l18n
|
||||
BASEDIR=labels_l18n
|
||||
fi
|
||||
label_file_name="labels_${DATABASE_LANG}.txt"
|
||||
ln -sf "$HOME/BirdNET-Pi/model/${BASEDIR}/${label_file_name}" "$HOME/BirdNET-Pi/model/labels.txt" || bashio::log.warning "Failed to update language labels"
|
||||
@@ -168,4 +168,3 @@ grep -rl "RECS_DIR" "$HOME" --exclude="*.php" | while read -r file; do
|
||||
sed -i "/^\$RECS_DIR=/c \$RECS_DIR=/tmp" "$file"
|
||||
done
|
||||
mkdir -p /tmp
|
||||
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import os
|
||||
|
||||
import paho.mqtt.client as mqtt
|
||||
import requests
|
||||
|
||||
utils_path = os.path.expanduser('~/BirdNET-Pi/scripts/utils')
|
||||
utils_path = os.path.expanduser("~/BirdNET-Pi/scripts/utils")
|
||||
sys.path.append(utils_path)
|
||||
|
||||
from helpers import get_settings
|
||||
|
||||
Reference in New Issue
Block a user