Closed linuxkidd closed 9 months ago
Same here; I hadn't gotten around to creating an issue.
It looks like a dependency conflict with the cryptography
package.
rivian-python-client
appears to require cryptography = "^41.0.1"
whereas Core now requires cryptography==42.0.1
(will be cryptography==42.0.2
in the next version of the beta).
Thanks, we'll get this taken care of!
I'm sure you guys are already on it, but I thought I mention the issues I'm seeing after manually updating the rivian-python-client
package to newly released v1.1.2.
The dependency conflicts appear to have been resolved, but the integration still fails to load, and I am seeing the following errors in the log:
Logger: homeassistant
Source: custom_components/rivian/coordinator.py:65
Integration: Rivian (Unofficial) (documentation, issues)
First occurred: 6:11:34 PM (3 occurrences)
Last logged: 6:11:59 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/rivian/ws_monitor.py", line 148, in _receiver
self._subscriptions[_id][0](data)
File "/config/custom_components/rivian/coordinator.py", line 281, in _process_new_data
vehicle_info = self._build_vehicle_info_dict(pdata.get(self.key, {}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rivian/coordinator.py", line 303, in _build_vehicle_info_dict
self.charging_coordinator.adjust_update_interval(
File "/config/custom_components/rivian/coordinator.py", line 139, in adjust_update_interval
self._set_update_interval(
File "/config/custom_components/rivian/coordinator.py", line 65, in _set_update_interval
refresh = self.update_interval and self.update_interval.seconds > seconds
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'seconds'
Logger: custom_components.rivian.coordinator
Source: helpers/update_coordinator.py:313
Integration: Rivian (Unofficial) (documentation, issues)
First occurred: 6:11:34 PM (3 occurrences)
Last logged: 6:11:59 PM
Unexpected error fetching rivian data: 'int' object has no attribute 'seconds'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rivian/coordinator.py", line 259, in _async_update_data
return self._build_vehicle_info_dict(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rivian/coordinator.py", line 303, in _build_vehicle_info_dict
self.charging_coordinator.adjust_update_interval(
File "/config/custom_components/rivian/coordinator.py", line 139, in adjust_update_interval
self._set_update_interval(
File "/config/custom_components/rivian/coordinator.py", line 65, in _set_update_interval
refresh = self.update_interval and self.update_interval.seconds > seconds
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'seconds'
@krazos I've got two PRs ready to address this. A recent change in HA introduced a private field that we were previously using in our own code, so had to change this
@linuxkidd / @krazos 1.0.1 has been released to resolve these issues
Thanks @natekspencer ... I can confirm I was able to re-setup the Rivian integration with the 1.0.1 release! Closing the ticket. :)
Attempts to load an already existing Rivian config, or re-add the Rivian integration results in the following error in the Home Assistant logs:
I'm guessing this is due to the 2024.2 release moving to Python 3.12.