Open nielswest65 opened 3 months ago
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:364
integration: Sensor (documentation, issues)
First occurred: 19:51:00 (1 occurrences)
Last logged: 19:51:00
Error while setting up afvalwijzer platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/afvalwijzer/sensor.py", line 68, in async_setup_platform
collector = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/afvalwijzer/collector/main_collector.py", line 92, in __init__
waste_data_raw = ximmio.get_waste_data_raw(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/afvalwijzer/collector/ximmio.py", line 36, in get_waste_data_raw
uniqueId = response["dataList"][0]["UniqueId"]
~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
The problem
foutmelding in logging, p4 met hassio wordt afgesloten of addons uitgezet:
Logger: homeassistant.helpers.entity Bron: helpers/entity.py:942 Eerst voorgekomen: 20:46:43 (14 gebeurtenissen) Laatst gelogd: 20:59:43
Update for calendar.afvalwijzer fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update await hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/entities_calendar/calendar.py", line 176, in update self.data.update() File "/usr/src/homeassistant/homeassistant/util/init.py", line 184, in wrapper result = method(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/entities_calendar/calendar.py", line 292, in update events.sort(key=lambda x: x.start ) TypeError: can't compare datetime.datetime to datetime.date
Version of afvalwijzer integration having the issue?
2024.06.02
Version of Home Assistant Core having the issue?
Core 2024.8.1 Supervisor 2024.08.0 Operating System 12.4 Frontend 20240809.0
Anything in the logs that might be useful for us?
Additional information
xx