From d79b49d0387373654ad2f593fed0974b535c1f00 Mon Sep 17 00:00:00 2001 From: Nekmo Date: Sun, 28 Oct 2018 22:07:20 +0100 Subject: [PATCH] Issue #93: Use THEN to execute (fixed action without params) --- amazon_dash/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amazon_dash/action.py b/amazon_dash/action.py index f0d4691..4457abc 100644 --- a/amazon_dash/action.py +++ b/amazon_dash/action.py @@ -9,7 +9,7 @@ class Action: def __init__(self, use, config=None, params=None, condition=None, template=None): self.use = use - self.params = params + self.params = params or {} self.condition = condition.lower() if condition else condition self.template = template self.config = config