From 5e15675593ba94a2c11f9f929cdad317e27ce190 Mon Sep 17 00:00:00 2001 From: Martin Brooksbank Date: Thu, 19 Sep 2019 08:55:07 +0100 Subject: [PATCH] Add additional needles to glances cpu_temp attribute (#22311) * Added additional needles to the cpu_temp attribute * Fix conflict --- homeassistant/components/glances/sensor.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/glances/sensor.py b/homeassistant/components/glances/sensor.py index 1385d5e59a7..90b4b386f37 100644 --- a/homeassistant/components/glances/sensor.py +++ b/homeassistant/components/glances/sensor.py @@ -197,18 +197,20 @@ class GlancesSensor(Entity): elif self.type == "cpu_temp": for sensor in value["sensors"]: 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", - "soc-thermal 1", + "amdgpu 1", "aml_thermal", "Core 0", "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"] elif self.type == "docker_active":