Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
psimsa committed Jul 11, 2023
1 parent 8b8d7e0 commit a61769f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/oig_cloud/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"opentelemetry-exporter-otlp-proto-grpc==1.18.0"
],
"ssdp": [],
"version": "1.0.0-rc1",
"version": "1.0.0",
"zeroconf": []
}
2 changes: 1 addition & 1 deletion custom_components/oig_cloud/release_const.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
COMPONENT_VERSION = "1.0.0-rc1"
COMPONENT_VERSION = "1.0.0"
SERVICE_NAME = "oig_cloud"
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"])
return float(pv_data["batt"]["bat_i"] * pv_data["batt"]["bat_v"] * -1)

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 a61769f

Please sign in to comment.