mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 11:13:34 +00:00
Fix update for smart devices
This commit is contained in:
parent
06c5e55ac6
commit
64eed4fbdd
@ -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__":
|
||||
|
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user