Skip to content

Commit b68a9dd

Browse files
Fix to use 1st battery for cloud data
1 parent e278fa8 commit b68a9dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/predbat/gecloud.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ async def async_automatic_config(self, devices):
656656
self.base.args["pause_end_time"] = ["select.predbat_gecloud_" + device + "_pause_battery_end_time" for device in batteries]
657657
if "givtcp_rest" in self.base.args:
658658
del self.base.args["givtcp_rest"]
659-
self.base.args["ge_cloud_serial"] = batteries[0]
659+
660+
# Use the first battery serial for the ge_cloud_serial (for status)
661+
self.base.args["ge_cloud_serial"] = devices["battery"][0]
660662

661663
# reconfigure for EMS
662664
if devices["ems"]:

0 commit comments

Comments
 (0)