Skip to content

Commit

Permalink
Fix: use total_power_export_t1_kwh instead import as replacement for …
Browse files Browse the repository at this point in the history
…total_power_export_kwh (#479)
  • Loading branch information
DCSBL authored Jan 7, 2025
1 parent d1b3937 commit b15e0f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion homewizard_energy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def __pre_deserialize__(cls, d: dict[Any, Any]) -> dict[Any, Any]:
d["energy_import_t3_kwh"] = d.get("total_power_import_t3_kwh")
d["energy_import_t4_kwh"] = d.get("total_power_import_t4_kwh")
d["energy_export_kwh"] = d.get(
"total_power_export_kwh", d.get("total_power_import_t1_kwh")
"total_power_export_kwh", d.get("total_power_export_t1_kwh")
)
d["energy_export_t1_kwh"] = d.get("total_power_export_t1_kwh")
d["energy_export_t2_kwh"] = d.get("total_power_export_t2_kwh")
Expand Down
Loading

0 comments on commit b15e0f8

Please sign in to comment.