Skip to content

Commit

Permalink
localapi: use FirmwareCheck update_data function
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
  • Loading branch information
Noltari committed Jul 25, 2024
1 parent f71a656 commit 4b3f910
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aioqsw/localapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ async def check_firmware(self) -> FirmwareCheck:

fw_check = await self.get_firmware_update_check()
await self.set_api_raw_data(RAW_FIRMWARE_CHECK, fw_check)
self.firmware_check = FirmwareCheck(fw_check)
if self.firmware_check is None:
self.firmware_check = FirmwareCheck(fw_check)
else:
self.firmware_check.update_data(fw_check)

return self.firmware_check

Expand Down

0 comments on commit 4b3f910

Please sign in to comment.