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

fix: component id must be a number, not string #1822

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

yankee42
Copy link
Contributor

Aus dem Forum:

Das neue JSON Modul für PV funktioniert nicht mehr

2021-12-16 13:44:53: PID: 3929: root: Json Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr Unbekannte PV-Nummer 1, Traceback:
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/json/device.py", line 65, in update
    self._components[component].update(response)
  File "/var/www/html/openWB/packages/modules/json/inverter.py", line 58, in update
    self.__store.set(inverter_state)
  File "/var/www/html/openWB/packages/modules/common/store/_inverter.py", line 27, in set
    raise FaultState.from_exception(e)
  File "/var/www/html/openWB/packages/modules/common/store/_inverter.py", line 20, in set
    raise FaultState.error("Unbekannte PV-Nummer " + str(self.num))
modules.common.fault_state.FaultState: ('Unbekannte PV-Nummer 1', <FaultStateLevel.ERROR: 2>)

Der Fehler ist offensichtlich.

Getestet ob das Modul noch weitere Fehler hat habe ich nicht.

@benderl benderl merged commit 54b85cf into snaptec:master Dec 17, 2021
@yankee42 yankee42 deleted the fix-json-pv branch December 19, 2021 13:11
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 this pull request may close these issues.

2 participants