home-assistant-custom-components icon indicating copy to clipboard operation
home-assistant-custom-components copied to clipboard

Solarportal: no updates and error logs AttributeError: 'NoneType' object has no attribute 'find'

Open gdschut opened this issue 3 years ago • 0 comments

Today I found out that I do not get any new values out of the sensors of the Solarportal component. Also my logging is filled with messages like this:


Jul 30 08:36:48 pi hass[509]: 2020-07-30 08:36:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.solar_energy_today fails
Jul 30 08:36:48 pi hass[509]: Traceback (most recent call last):
Jul 30 08:36:48 pi hass[509]:   File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
Jul 30 08:36:48 pi hass[509]:     await self.async_device_update()
Jul 30 08:36:48 pi hass[509]:   File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 466, in async_device_update
Jul 30 08:36:48 pi hass[509]:     self.update  # type: ignore
Jul 30 08:36:48 pi hass[509]:   File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
Jul 30 08:36:48 pi hass[509]:     result = self.fn(*self.args, **self.kwargs)
Jul 30 08:36:48 pi hass[509]:   File "/home/pi/.homeassistant/custom_components/solarportal/sensor.py", line 179, in update
Jul 30 08:36:48 pi hass[509]:     self._state = income.find('etoday').text
Jul 30 08:36:48 pi hass[509]: AttributeError: 'NoneType' object has no attribute 'find'


gdschut avatar Jul 30 '20 06:07 gdschut