Skip to content

Commit

Permalink
fix: plugin(sensors) - serialization bug with raw stats
Browse files Browse the repository at this point in the history
  • Loading branch information
RazCrimson authored and nicolargo committed May 25, 2024
1 parent a06737c commit ad604c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glances/plugins/sensors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()})

Expand Down

0 comments on commit ad604c1

Please sign in to comment.