From 8510d731bf295db86bea031b5924c05e97234354 Mon Sep 17 00:00:00 2001 From: Hristo Date: Sun, 28 Jan 2024 18:49:25 +0200 Subject: [PATCH] remove a new line after fan speed value --- src/rpi-cpu2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index cfb018f..f9903f6 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -119,7 +119,7 @@ def check_model_name(): def check_rpi5_fan_speed(): full_cmd = "cat /sys/devices/platform/cooling_fan/hwmon/*/fan1_input" - rpi5_fan_speed = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode("utf-8") + rpi5_fan_speed = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode("utf-8").strip() return rpi5_fan_speed