Skip to content

Commit 4d8aa89

Browse files
Update work
1 parent ce75190 commit 4d8aa89

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

balanz/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ async def api_handler(websocket):
909909
]
910910
else:
911911
# Note: No return value from this call!
912+
logger.info(f"Initiated firmware update for {charger_id} ({charger.alias}). URL: {location}")
912913
await charger.ocpp_ref.update_firmware(location=location)
913914
result = [
914915
MessageType.CallResult,

balanz/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def update_fw_options(self) -> None:
11081108
and re.match(firmware.upgrade_from_versions, self.firmware_version)
11091109
):
11101110
# If we have a match, add the firmware to the list of options for that charger.
1111-
self.fw_options.append({"firmware": firmware.firmware_id, "url": firmware.url})
1111+
self.fw_options.append({"firmware_id": firmware.firmware_id, "url": firmware.url})
11121112

11131113

11141114
class Group:

0 commit comments

Comments
 (0)