diff --git a/integration-tests/tests/enabledExpression/enabledExpression.mjs b/integration-tests/tests/enabledExpression/enabledExpression.mjs index ce15b30..c9901cb 100644 --- a/integration-tests/tests/enabledExpression/enabledExpression.mjs +++ b/integration-tests/tests/enabledExpression/enabledExpression.mjs @@ -19,7 +19,7 @@ describe('config: enabledExpression', function () { takeScreenshotOnFailure(this.currentTest, webdriver); }); - it('Action with enabledExpression false is disabled', async function() { + it('Action with enabledExpression for lights enable the correct action', async function() { await getRootAndWait() // Navigate to the Lights Dashboard diff --git a/service/internal/config/config.go b/service/internal/config/config.go index 722e492..267dda4 100644 --- a/service/internal/config/config.go +++ b/service/internal/config/config.go @@ -28,6 +28,7 @@ type Action struct { Arguments []ActionArgument `koanf:"arguments"` PopupOnStart string `koanf:"popupOnStart"` SaveLogs SaveLogsConfig `koanf:"saveLogs"` + EnabledExpression string `koanf:"enabledExpression"` } // ActionArgument objects appear on Actions.