Add more CPU temp. labels to Glances (#23179)

This commit is contained in:
Christopher Viel 2019-04-19 09:21:16 -04:00 committed by Fabian Affolter
parent 6e300bd438
commit b1b269b302

View file

@ -175,8 +175,9 @@ class GlancesSensor(Entity):
self._state = value['quicklook']['cpu']
elif self.type == 'cpu_temp':
for sensor in value['sensors']:
if sensor['label'] in ['CPU', "Package id 0",
"Physical id 0", "cpu-thermal 1",
if sensor['label'] in ['CPU', "CPU Temperature",
"Package id 0", "Physical id 0",
"cpu_thermal 1", "cpu-thermal 1",
"exynos-therm 1", "soc_thermal 1"]:
self._state = sensor['value']
elif self.type == 'docker_active':