Skip to content

Commit

Permalink
Update CPU module to retrieve CPU temperature from atk0110 sensor (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Apr 27, 2024
1 parent 2c7f35d commit 9e714aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions systembridgebackend/modules/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ async def _get_temperature(self) -> float | None:
sensor,
)
return sensor.current
if "atk0110" in self.sensors.temperatures:
for sensor in self.sensors.temperatures["atk0110"]:
self._logger.debug("atk0110: %s", sensor)
if "CPU" in sensor:
self._logger.debug(
"Found CPU temperature (atk0110): %s",
sensor,
)
return sensor.current
if (
self.sensors.windows_sensors is not None
and self.sensors.windows_sensors.hardware is not None
Expand Down

0 comments on commit 9e714aa

Please sign in to comment.