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"):