From c0ea9716b90a5751231ddb35c60854f3719d1ae8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Dec 2023 17:45:35 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index cbabe655..cbe716df 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -245,7 +245,7 @@ CHECKTEMP_SERVICE(){ fi if [ "${SENSORS_CHECK}" != "" ]; then for SENSOR in "${SENSORS_CHECK[@]}"; do - [ ! "${last_temp[${SENSOR}]}" ] && last_temp[${SENSOR}]=0 + [ "${last_temp[${SENSOR}]}" == "" ] && last_temp[${SENSOR}]=0 if [ "${PW_THRESHOLDS[${SENSORa}]}" != "" ]; then echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit