mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
fixes
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user