From 5399ba25a0735f67dedf94e63a288a002d421a85 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Tue, 14 Jul 2026 05:42:43 +0200 Subject: [PATCH] Fix EUREKA CPU temperature readings The sensor URL was built as BMC{N}CpuCPU{X}Temp instead of BMC{N}CPU{X}Temp, so every request returned 404. The entries also referenced const.SensorUnits, which does not exist, and used a dict shape the only consumer, get_average_processor_temperature, cannot read - it expects thermal-style dicts with ReadingCelsius. --- confluent_server/aiohmi/redfish/oem/megware/eureka.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/confluent_server/aiohmi/redfish/oem/megware/eureka.py b/confluent_server/aiohmi/redfish/oem/megware/eureka.py index 0c377099..98db5946 100644 --- a/confluent_server/aiohmi/redfish/oem/megware/eureka.py +++ b/confluent_server/aiohmi/redfish/oem/megware/eureka.py @@ -96,15 +96,12 @@ class OEMHandler(generic.OEMHandler): continue for cpu in ('CPU0', 'CPU1'): try: - sensor_url = '/redfish/v1/Chassis/1/Sensors/BMC{}Cpu{}Temp'.format(nodeid, cpu) + sensor_url = '/redfish/v1/Chassis/1/Sensors/BMC{}{}Temp'.format(nodeid, cpu) sensor = await fishclient._do_web_request(sensor_url) if sensor and 'Reading' in sensor: cputemps.append({ - 'name': 'CPU {} Node {}'.format(cpu, nodeid), - 'value': float(sensor['Reading']), - 'state_ids': [], - 'units': const.SensorUnits.Celsius, - 'imprecision': None, + 'Name': '{} Node {}'.format(cpu, nodeid), + 'ReadingCelsius': float(sensor['Reading']), }) except Exception: pass