Skip to content

Commit

Permalink
Revert "Update sensor.py"
Browse files Browse the repository at this point in the history
This reverts commit a0069c9.
  • Loading branch information
psimsa committed Jul 10, 2023
1 parent a0069c9 commit 638407c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/oig_cloud/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def state(self):
)

if self._sensor_type == "batt_batt_comp_p":
return float(pv_data["batt"]["bat_i"] * pv_data["batt"]["bat_v"] * -1)
return float(pv_data["batt"]["bat_i"] * pv_data["batt"]["bat_v"])

if self._sensor_type == "dc_in_fv_total":
return float(pv_data["dc_in"]["fv_p1"] + pv_data["dc_in"]["fv_p2"])
Expand Down

0 comments on commit 638407c

Please sign in to comment.