You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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
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!
The text was updated successfully, but these errors were encountered: