Fix update for smart devices

This commit is contained in:
Teemu Rytilahti 2024-08-31 15:31:25 +02:00
parent 06c5e55ac6
commit 64eed4fbdd
2 changed files with 2 additions and 3 deletions

View File

@ -1301,7 +1301,7 @@ async def firmware_update(ctx: click.Context, dev: Device):
echo(f"Progress: {x}")
echo("Going to update %s", dev)
await dev.modules.get[Module.Firmware].update_firmware(progress_cb=progress) # type: ignore
await dev.modules[Module.Firmware].update_firmware(progress_cb=progress) # type: ignore
if __name__ == "__main__":

View File

@ -228,8 +228,7 @@ class Firmware(SmartModule, FirmwareInterface):
| None = None,
) -> UpdateResult:
"""Update the firmware."""
# TODO: implement, this is part of the common firmware API
raise NotImplementedError
return await self.update(progress_cb)
async def check_for_updates(self) -> FirmwareUpdateInfoInterface:
"""Return firmware update information."""