Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration not starting #52

Closed
Antoni-Czaplicki opened this issue Feb 14, 2024 · 2 comments
Closed

Integration not starting #52

Antoni-Czaplicki opened this issue Feb 14, 2024 · 2 comments
Labels
awaiting for api Awaiting for API update bug Something isn't working

Comments

@Antoni-Czaplicki
Copy link
Owner

          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_validator_class(self, attr_class, 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, on_setattr=None, alias='class'), (<class 'str'>,), None)

Originally posted by @tomekswx in #50 (comment)

@Antoni-Czaplicki
Copy link
Owner Author

We are waiting for new vulcan-api release: kapi2289/vulcan-api#138

@Antoni-Czaplicki
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting for api Awaiting for API update bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant