You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I have moved my Supervised installation of Home Assistant to Nvidia Jetson Orin Nano. And HW System monitor integration failed to start due to this error in psutil
Unexpected error fetching System Monitor update coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/coordinator.py", line 130, in _async_update_data
_data = await self.hass.async_add_executor_job(self.update_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/coordinator.py", line 210, in update_data
temps = self._psutil.sensors_temperatures()
File "/usr/local/lib/python3.13/site-packages/psutil/init.py", line 2295, in sensors_temperatures
rawdict = _psplatform.sensors_temperatures()
File "/usr/local/lib/python3.13/site-packages/psutil/_pslinux.py", line 1453, in sensors_temperatures
current = float(bcat(path)) / 1000.0
~~~~~^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'
It looks like on this board or kernel some of the thermal zones are unavailable:
Summary
Description
Recently I have moved my Supervised installation of Home Assistant to Nvidia Jetson Orin Nano. And HW System monitor integration failed to start due to this error in psutil
It looks like on this board or kernel some of the thermal zones are unavailable:
This causes the bcat to return None at this line:
current = float(bcat(path)) / 1000.0
https://github.com/giampaolo/psutil/blob/master/psutil/_pslinux.py#L1453
As a fast fix, I have added ignore of TypeError at
https://github.com/giampaolo/psutil/blob/master/psutil/_pslinux.py#L1456 and it looks helped.
Another option is to test bcat return value for a None and skip the sensor in case of None.
The text was updated successfully, but these errors were encountered: