Skip to content

Commit

Permalink
Add firmware version entity (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas authored Aug 27, 2021
1 parent 31d8b4f commit afe8fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ You can read the following data with this package:

- Serial Number
- Inverter Model
- Firmware Version
- Current Power Production (W)
- Day Energy Production (kWh)
- Total Energy Production (kWh)
Expand Down
2 changes: 2 additions & 0 deletions omnikinverter/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Inverter:

serial_number: str | None
inverter_model: str | None
inverter_firmware: str | None
inverter_current_power: int | None
inverter_energy_today: float | None
inverter_energy_total: float | None
Expand Down Expand Up @@ -41,6 +42,7 @@ def get_values(position):
return Inverter(
serial_number=get_values(0),
inverter_model=get_values(3),
inverter_firmware=get_values(2),
inverter_current_power=get_values(5),
inverter_energy_today=get_values(6),
inverter_energy_total=get_values(7),
Expand Down

0 comments on commit afe8fab

Please sign in to comment.