Logger: homeassistant.components.sensor
Source: custom_components/vulcan/fetch_data.py:142
Integration: Sensor (documentation, issues)
First occurred: 16:38:14 (6 occurrences)
Last logged: 16:42:43
Error while setting up vulcan platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 362, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/vulcan/sensor.py", line 106, in async_setup_entry
"attendance": await get_latest_attendance(client),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/vulcan/fetch_data.py", line 142, in get_latest_attendance
latest_attendance["lesson_name"] = attendance.subject.name
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
Witam, przy próbie dodania ucznia dostaję błędy: