This commit is contained in:
J. Nick Koston 2023-11-19 10:53:34 -06:00
parent 5fdec8ceb6
commit 541cd531f8
No known key found for this signature in database

View File

@ -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: