Skip to content

Commit 4bd8ce3

Browse files
committed
Fix EV charger serial number extraction - use serial_number not serial
1 parent a26ea1c commit 4bd8ce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/predbat/gecloud.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ async def start(self):
728728
await self.publish_info(device, self.info[device])
729729
for uuid in evc_device_list:
730730
self.evc_device[uuid] = await self.async_get_evc_device(uuid)
731-
serial = self.evc_device[uuid].get("serial", "unknown")
731+
serial = self.evc_device[uuid].get("serial_number", "unknown")
732732
self.evc_data[uuid] = await self.async_get_evc_device_data(uuid)
733733
self.evc_sessions[uuid] = await self.async_get_evc_sessions(uuid)
734734
await self.publish_evc_data(serial, self.evc_data[uuid])

0 commit comments

Comments
 (0)