From f3e55ce330d6bf733360e9e46b30ab50fc01e566 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jun 2018 08:39:48 +0200 Subject: [PATCH] Allow different identifiers for the CPU temperature (fixes #10104) (#14898) --- homeassistant/components/sensor/glances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/glances.py b/homeassistant/components/sensor/glances.py index 0de87bd17ea..4fed3793c50 100644 --- a/homeassistant/components/sensor/glances.py +++ b/homeassistant/components/sensor/glances.py @@ -155,9 +155,9 @@ class GlancesSensor(Entity): self._state = value['processcount']['sleeping'] elif self.type == 'cpu_temp': for sensor in value['sensors']: - if sensor['label'] == 'CPU': + if sensor['label'] in ['CPU', "Package id 0", + "Physical id 0"]: self._state = sensor['value'] - self._state = None elif self.type == 'docker_active': count = 0 for container in value['docker']['containers']: