From ad604c1dc54fe6be0a900b023ab2b51c3628a012 Mon Sep 17 00:00:00 2001 From: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> Date: Sat, 18 May 2024 04:55:05 +0530 Subject: [PATCH] fix: plugin(sensors) - serialization bug with raw stats --- glances/plugins/sensors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/sensors/__init__.py b/glances/plugins/sensors/__init__.py index e326887cfa..69c979530f 100644 --- a/glances/plugins/sensors/__init__.py +++ b/glances/plugins/sensors/__init__.py @@ -214,7 +214,7 @@ def __set_type(self, stats: List[Dict[str, Any]], sensor_type: SensorType) -> Li """ for i in stats: # Set the sensors type - i.update({'type': str(sensor_type)}) + i.update({'type': sensor_type}) # also add the key name i.update({'key': self.get_key()})