From 9a2ac857c4e5ce3553e535ec46c1d45448e940b9 Mon Sep 17 00:00:00 2001 From: Nuno Godinho Date: Sat, 10 Apr 2021 17:53:36 +0100 Subject: [PATCH] Convert parameters to string Fixes #23 --- action_plugins/tasmota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_plugins/tasmota.py b/action_plugins/tasmota.py index 7f65441..420d0ed 100644 --- a/action_plugins/tasmota.py +++ b/action_plugins/tasmota.py @@ -245,7 +245,7 @@ def _get_arg_or_var(self, name, default=None, is_required=True): if is_required and ret == None: raise AnsibleOptionsError("parameter %s is required" % name) else: - return ret + return str(ret) def _translateResultStr(self, translate, offValue = "0", onValue = "1"): if (translate == "OFF"):