Open vingerha opened 11 months ago
or... worse? it now added this
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:696
First occurred: 17:26:05 (1 occurrences)
Last logged: 17:26:05
Update for sensor.mijn_tuin fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 696, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 957, in async_device_update
await self.async_update()
File "/config/custom_components/mijntuin/sensor.py", line 173, in async_update
await self._data.update()
File "/config/custom_components/mijntuin/sensor.py", line 143, in update
await self._update()
File "/config/custom_components/mijntuin/sensor.py", line 133, in _update
await self._force_update()
File "/config/custom_components/mijntuin/sensor.py", line 121, in _force_update
self._calendarData = await self._hass.async_add_executor_job(lambda: self._session.getCalendar(self._plants))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mijntuin/sensor.py", line 121, in <lambda>
self._calendarData = await self._hass.async_add_executor_job(lambda: self._session.getCalendar(self._plants))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mijntuin/utils.py", line 186, in getCalendar
item['details'] = self.getTaskDetails(item.get('link'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mijntuin/utils.py", line 105, in getTaskDetails
description = div_plantAction.find('div', {'class': 'description mt-3'})
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find'
Can you still login on the website itself via browser? Might be general account issue..
at the moment it works fine... and I hardly detect the error at the time it exposes itself so difficult to verify if the account is the cause
Log output, this happens since max 2 weeks (not more details than this, sorry)