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

exception: type object 'Endian' has no attribute 'BIG' #53

Closed
RoyPorter opened this issue Oct 14, 2023 · 5 comments · May be fixed by #54
Closed

exception: type object 'Endian' has no attribute 'BIG' #53

RoyPorter opened this issue Oct 14, 2023 · 5 comments · May be fixed by #54

Comments

@RoyPorter
Copy link

I've been getting this error for the last couple of weeks, I think I've just tracked down the issue (pymodbus version). I'll check and raise a PR if I'm right.

Logger: custom_components.solaredge_modbus.sensor
Source: custom_components/solaredge_modbus/sensor.py:214
Integration: SolarEdge Modbus ([documentation](https://github.com/erikarenhill/solaredge-modbus-hass))
First occurred: 14:30:57 (9 occurrences)
Last logged: 14:31:37

exception: type object 'Endian' has no attribute 'BIG'
@erikarenhill
Copy link
Owner

This has already been fixed (#50) update to latest version.

@RoyPorter
Copy link
Author

Please re-open, as I experienced this issue when I upgraded to v0.1.4. The linked PR fixes it for me.

pymodbus v3.5.0 brought in the uppercasing of enum's so it's necessary to pin the version of pymodbus that you're using to one that is at least v.3.5.0.

@erikarenhill
Copy link
Owner

erikarenhill commented Dec 11, 2023

Valid point if you are using an old version of Home Assistant

From Home Assistant 2023.9.1 they bumped modbus 3.5.1 to the default, what version of HA are you using?

@RoyPorter
Copy link
Author

Interesting ... I'm on version 2023.11.3

I'm not familiar enough with the inner workings of Home Assistant to workout what's wrong. Pinning the version in solaredge-modbus-hass fixed the issue for me, I'll remove that locally and see if it works with my current version of HA

@RoyPorter
Copy link
Author

So, I'm still experiencing this issue, intermittently. Thought it was because I had another integration also using pymodbus, with a pinned old version, but I've uninstalled and still get this issue.

I'm on the very latest everything; sometimes it works, but it hasn't wanted to after the latest batches of updates, so I've once again pinned the version in my local install.

May be an idea to pin it to >= 3.5 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants