Skip to content

Commit a61769f

Browse files
committed
v1
1 parent 8b8d7e0 commit a61769f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

custom_components/oig_cloud/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"opentelemetry-exporter-otlp-proto-grpc==1.18.0"
1515
],
1616
"ssdp": [],
17-
"version": "1.0.0-rc1",
17+
"version": "1.0.0",
1818
"zeroconf": []
1919
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
COMPONENT_VERSION = "1.0.0-rc1"
1+
COMPONENT_VERSION = "1.0.0"
22
SERVICE_NAME = "oig_cloud"

custom_components/oig_cloud/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def state(self):
7777
)
7878

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

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

0 commit comments

Comments
 (0)