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

der.common model no longer exists in versions 1.1.3 and 1.14 #92

Open
lp-0 opened this issue Jun 26, 2024 · 0 comments
Open

der.common model no longer exists in versions 1.1.3 and 1.14 #92

lp-0 opened this issue Jun 26, 2024 · 0 comments

Comments

@lp-0
Copy link

lp-0 commented Jun 26, 2024

Hello!

We have been having an issue with our Sunspec driver in the recent updates where the 'common' model no longer seems to exist.

Our code goes a bit like this:
self.der = client.SunSpecModbusClientDeviceTCP(*init_args, **init_kwargs, timeout=timeout)
self.der.scan()
# Read manufacturer to make sure we are looking at right device
manufacturer = self.der.common[0].Mn.value
assert manufacturer == 'XXXXXXXXX'

In version 1.1.2, this code works fine. With the recent versions, we get this error:
'SunSpecModbusClientDeviceTCP' object has no attribute 'common'.

What is the work around for this? I'm not sure why the models don't appear in the latest versions.

Cheers!

@lp-0 lp-0 changed the title der.common attribute no longer exists in versions 1.1.3 and 1.14 der.common model no longer exists in versions 1.1.3 and 1.14 Jul 3, 2024
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

No branches or pull requests

1 participant