Antoni-Czaplicki / vulcan-for-hassio

Vulcan inegration for home assistamt
26 stars 3 forks source link

Integration not starting #52

Closed Antoni-Czaplicki closed 7 months ago

Antoni-Czaplicki commented 9 months ago
          It doesn't work for me either, despite reinstallations and reboots, error log below:

2024-02-12 12:39:39.907 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry *** for vulcan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/vulcan/init.py", line 28, in async_setup_entry await client.select_student() File "/usr/local/lib/python3.12/site-packages/vulcan/_client.py", line 42, in select_student students = await self.get_students() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/vulcan/_client.py", line 61, in get_students self._students = await Student.get(self._api) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/vulcan/model/_student.py", line 79, in get return [Student.load(student) for student in data] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/vulcan/model/_serializable.py", line 49, in load return to_model(cls, data) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/related/functions.py", line 104, in to_model value = cls(**value) ^^^^^^^^^^^^ File "", line 11, in init attr_validatorclass(self, __attrclass, self.class_) File "/usr/local/lib/python3.12/site-packages/attr/validators.py", line 106, in call_ raise TypeError( TypeError: ("'class' must be (<class 'str'>,) (got None that is a <class 'NoneType'>).", Attribute(name='class_', default=NOTHING, validator=<instance_of validator for type (<class 'str'>,)>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({'key': 'ClassDisplay'}), type=<class 'str'>, converter=<function str_if_not_none at 0x7f12484ce0c0>, kw_only=False, inherited=False, onsetattr=None, alias='class'), (<class 'str'>,), None)

Originally posted by @tomekswx in https://github.com/Antoni-Czaplicki/vulcan-for-hassio/issues/50#issuecomment-1938524327

Antoni-Czaplicki commented 8 months ago

We are waiting for new vulcan-api release: https://github.com/kapi2289/vulcan-api/pull/138

Antoni-Czaplicki commented 7 months ago

https://github.com/Antoni-Czaplicki/vulcan-for-hassio/releases/tag/0.16.1