From 1b9090762acea0170c685c694f93e0d3a52d2c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Brod=C3=A9n?= Date: Thu, 7 Sep 2023 18:23:36 +0200 Subject: [PATCH] Don't wait on state change for required plugin --- api/plugins.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/plugins.go b/api/plugins.go index d776ca1..d1c3f98 100644 --- a/api/plugins.go +++ b/api/plugins.go @@ -21,6 +21,9 @@ func (api *API) waitUntilPluginChanged(instanceID int, pluginName string, enable if err != nil { return nil, err } + if response["required"] != nil && response["required"] != false { + return response, nil + } if response["enabled"] == enabled { return response, nil }