From bb6b2c84eac8b9e00cf68183eeebcd90cb5532f1 Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Mon, 6 Jul 2020 21:40:04 +0200 Subject: [PATCH] cli: Fix incorrect use of asyncio.run for temperature command --- kasa/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kasa/cli.py b/kasa/cli.py index 4e1a7339e..4c643b13a 100755 --- a/kasa/cli.py +++ b/kasa/cli.py @@ -1,5 +1,4 @@ """python-kasa cli tool.""" -import asyncio import json import logging import re @@ -373,7 +372,7 @@ async def temperature(dev: SmartBulb, temperature: int, transition: int): ) else: click.echo(f"Setting color temperature to {temperature}") - asyncio.run(dev.set_color_temp(temperature, transition=transition)) + await dev.set_color_temp(temperature, transition=transition) @cli.command()