sfstar / hass-victron

Integration for Home Assistant to fetch data from the victron gx device via modbusTCP
Apache License 2.0
180 stars 27 forks source link

After updating HA to 2023.6.0 I am getting error messages #81

Closed gb095666 closed 1 year ago

gb095666 commented 1 year ago

This error originated from a custom integration.

Logger: homeassistant.loader Source: custom_components/victron/number.py:154 Integration: victron (documentation, issues) First occurred: 23:39:17 (1 occurrences) Last logged: 23:39:17

Unexpected exception importing platform custom_components.victron.number Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/victron/number.py", line 154, in @dataclass ^^^^^^^^^ File "/usr/local/lib/python3.11/dataclasses.py", line 1223, in dataclass return wrap(cls) ^^^^^^^^^ File "/usr/local/lib/python3.11/dataclasses.py", line 1213, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dataclasses.py", line 1027, in _process_class _init_fn(all_init_fields, File "/usr/local/lib/python3.11/dataclasses.py", line 545, in _init_fn raise TypeError(f'non-default argument {f.name!r} ' TypeError: non-default argument 'key' follows default argument

peregrines2 commented 1 year ago

Here too :( It seems to directly be related to Homeassistant 2023.6.0.

Bildschirmfoto 2023-06-08 um 00 46 23 Bildschirmfoto 2023-06-08 um 00 46 32
peregrines2 commented 1 year ago
Bildschirmfoto 2023-06-08 um 00 46 23
Dreanaught commented 1 year ago

+1 I get the same error

andrewdavidson64 commented 1 year ago

Same problem here, typically I'd just upgraded my Cerbo to 3.0. After downgrading and getting nowhere, I realise HA had helpfully upgraded itself and broken everything. Again.

sfstar commented 1 year ago

Thanks for reporting,

After this week I will have some time to fix this. For now please revert to HA core 2023.05 and wait with upgrading until a patch release has been made.

gb095666 commented 1 year ago

Thanks for reporting,

After this week I will have some time to fix this. For now please revert to HA core 2023.05 and wait with upgrading until a patch release has been made.

Thanks for replying, I have downgraded HA and its back working now, I will await your update when you get around to it.

Also, I am not sure if you have seen I have created a Pull request, apologies if I have done it wrong as I am still learning GIT etc.

Its an update for the Victron EV Charger section, I would be grateful if that can be included in the upgrade if possible.

cybertza commented 1 year ago

+1

sfstar commented 1 year ago

V0.1.1 has been released to adress this issue. Please let me know if any other issues arrive with this new release and ha core 2023.6.0

@gb095666 I've seen the PR and will address it in a coming release. I've several specsheet mismatches issues open with victron at the moment. When they respond on what the correct definition for these (and your evcharger decoding issue) I will be able to proceed.

peregrines2 commented 1 year ago

THANK YOU for all your hard work and for updating so quick!

leowinterde commented 1 year ago

Thanks for the fast update, error is gone.

gb095666 commented 1 year ago

V0.1.1 has been released to adress this issue. Please let me know if any other issues arrive with this new release and ha core 2023.6.0

@gb095666 I've seen the PR and will address it in a coming release. I've several specsheet mismatches issues open with victron at the moment. When they respond on what the correct definition for these (and your evcharger decoding issue) I will be able to proceed.

@sfstar Thanks, as long as you have seen it that's fine.

sfstar commented 1 year ago

No further issues were reported with ha 2023.06 and the v0.1.1 release. Therefore closing this issue. Feel free to re-open if the issue persists