From ae2e3ef18dcc59f11a0e4f7729d8741f39da09fd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 19 Jul 2025 15:07:22 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a86123ee..c668dea3 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1652,7 +1652,7 @@ SENDTEMP(){ elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "tuya" ]; then IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${SENSORa}); unset IFS - elif [ "${PW_SENSOR_TYPE[${1}]}" == "midea" ]; then + elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "midea" ]; then IFS='~' read -r token key <<< ${PW_SENSOR_DEVICEID[${SENSORa}]}; unset IFS info=$(midea-beautiful-air-cli status --ip ${PW_REMOTE_SENSORS[${SENSORa}]} --token ${token} --key ${key}) temp_c=$(echo "${info}" | grep indoor | awk ' {print $3}')