From fc101fb30b65c6c102056fe938fb9f48cb40f880 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 20 Feb 2019 16:12:02 -0800 Subject: [PATCH] Concatenate a str to a list --- drivetemp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivetemp.py b/drivetemp.py index 13e4b58..6105fa7 100644 --- a/drivetemp.py +++ b/drivetemp.py @@ -35,7 +35,7 @@ def retrieve_smart_temp(device_node): :returns: output of skdump in mKelvin :rtype: float """ - temp = subprocess.run(DUMP_CMD + device_node, + temp = subprocess.run(DUMP_CMD + [device_node], capture_output=True, text=True).stdout return float(temp)