Add additional needles to glances cpu_temp attribute (#22311)

* Added additional needles to the cpu_temp attribute

* Fix conflict
This commit is contained in:
Martin Brooksbank 2019-09-19 08:55:07 +01:00 committed by Fabian Affolter
parent 80136f3591
commit 5e15675593

View File

@ -197,18 +197,20 @@ class GlancesSensor(Entity):
elif self.type == "cpu_temp": elif self.type == "cpu_temp":
for sensor in value["sensors"]: for sensor in value["sensors"]:
if sensor["label"] in [ if sensor["label"] in [
"CPU", "amdgpu 1",
"CPU Temperature",
"Package id 0",
"Physical id 0",
"cpu_thermal 1",
"cpu-thermal 1",
"exynos-therm 1",
"soc_thermal 1",
"soc-thermal 1",
"aml_thermal", "aml_thermal",
"Core 0", "Core 0",
"Core 1", "Core 1",
"CPU Temperature",
"CPU",
"cpu-thermal 1",
"cpu_thermal 1",
"exynos-therm 1",
"Package id 0",
"Physical id 0",
"radeon 1",
"soc-thermal 1",
"soc_thermal 1",
]: ]:
self._state = sensor["value"] self._state = sensor["value"]
elif self.type == "docker_active": elif self.type == "docker_active":