diff --git a/kasa/cli/feature.py b/kasa/cli/feature.py index 2c5fa045..522dee7f 100644 --- a/kasa/cli/feature.py +++ b/kasa/cli/feature.py @@ -122,6 +122,12 @@ async def feature( feat = dev.features[name] + if value is None and feat.type is Feature.Type.Action: + echo(f"Executing action {name}") + response = await dev.features[name].set_value(value) + echo(response) + return response + if value is None: unit = f" {feat.unit}" if feat.unit else "" echo(f"{feat.name} ({name}): {feat.value}{unit}")