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