mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
fixes
This commit is contained in:
parent
5fdec8ceb6
commit
541cd531f8
@ -225,7 +225,7 @@ async def cli(
|
||||
|
||||
if type is not None:
|
||||
device_type = DeviceType.from_value(type)
|
||||
dev = SmartDevice.connect(
|
||||
dev = await SmartDevice.connect(
|
||||
host, credentials=credentials, device_type=device_type
|
||||
)
|
||||
else:
|
||||
@ -235,8 +235,8 @@ async def cli(
|
||||
port=port,
|
||||
credentials=credentials,
|
||||
)
|
||||
await dev.update()
|
||||
|
||||
await dev.update()
|
||||
ctx.obj = dev
|
||||
|
||||
if ctx.invoked_subcommand is None:
|
||||
|
Loading…
Reference in New Issue
Block a user