Allow different identifiers for the CPU temperature (fixes #10104) (#14898)

pull/14905/head
Fabian Affolter 2018-06-10 08:39:48 +02:00 committed by Martin Hjelmare
parent 20caeb5383
commit f3e55ce330
1 changed files with 2 additions and 2 deletions

View File

@ -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']: