Jeg fant dette i loggen mange ganger:
2021-09-26 05:00:00 ERROR (MainThread) [homeassistant.util.logging] Exception in check_stuff when dispatching 'nordpool_update': ()
Traceback (most recent call last):
File "/config/custom_components/nordpool/sensor.py", line 461, in check_stuff
self._update(self._data_today)
File "/config/custom_components/nordpool/sensor.py", line 315, in _update
self._peak = mean(peak)
File "/usr/local/lib/python3.9/statistics.py", line 316, in mean
T, total, count = _sum(data)
File "/usr/local/lib/python3.9/statistics.py", line 166, in _sum
for n, d in map(_exact_ratio, values):
File "/usr/local/lib/python3.9/statistics.py", line 248, in _exact_ratio
raise TypeError(msg.format(type(x).__name__))
TypeError: can't convert type 'NoneType' to numerator/denominator
Hvordan skrur jeg på debugging?