| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1d90b5a commit f639632
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -122,6 +122,12 @@ async def feature( | |||
| 122 | 122 | ||
| 123 | 123 | feat = dev.features[name] | |
| 124 | 124 | ||
| 125 | + if value is None and feat.type is Feature.Type.Action: | ||
| 126 | + echo(f"Executing action {name}") | ||
| 127 | + response = await dev.features[name].set_value(value) | ||
| 128 | + echo(response) | ||
| 129 | + return response | ||
| 130 | + | ||
| 125 | 131 | if value is None: | |
| 126 | 132 | unit = f" {feat.unit}" if feat.unit else "" | |
| 127 | 133 | echo(f"{feat.name} ({name}): {feat.value}{unit}") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments