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

unhandled case where sunspec models dict is empty.. #310

Open
davmoz opened this issue Nov 21, 2024 · 0 comments
Open

unhandled case where sunspec models dict is empty.. #310

davmoz opened this issue Nov 21, 2024 · 0 comments
Milestone

Comments

@davmoz
Copy link
Member

davmoz commented Nov 21, 2024

[Logs] [2024-11-21T08:39:11.881Z] [web] INFO:server.devices.inverters.ModbusSunspec:Models: {}
[Logs] [2024-11-21T08:39:11.884Z] [web] ERROR:server.tasks.openDevicePerpetualTask:Exception opening a device: 'SunSpecModbusClientDeviceTCP' object has no attribute 'common''Traceback (most recent call last):\n File "/server/tasks/openDevicePerpetualTask.py", line 44, in execute\n if self.device.connect():\n ^^^^^^^^^^^^^^^^^^^^^\n File "/server/devices/Device.py", line 22, in connect\n return self._connect(**kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "/server/devices/inverters/ModbusSunspec.py", line 102, in _connect\n self.sn = self.client.common[0].SN.value\n ^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/sunspec2/device.py", line 725, in getattr\n raise AttributeError("'%s' object has no attribute '%s'" % (self.class.name, attr))\nAttributeError: 'SunSpecModbusClientDeviceTCP' object has no attribute 'common''

@davmoz davmoz added this to the 2024-r12 milestone Nov 21, 2024
@h0bb3 h0bb3 modified the milestones: 2024-r12, 2024-r13 Nov 27, 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

2 participants