From b27c6a3f5157ecb9e30b04e1b2edbac7d62afc2a Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Fri, 8 May 2020 16:03:42 +0200 Subject: [PATCH] Fixed bugs in automation fast update --- smart-hut/src/components/dashboard/AutomationCreationModal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smart-hut/src/components/dashboard/AutomationCreationModal.js b/smart-hut/src/components/dashboard/AutomationCreationModal.js index 722c09c..e0ef5f6 100644 --- a/smart-hut/src/components/dashboard/AutomationCreationModal.js +++ b/smart-hut/src/components/dashboard/AutomationCreationModal.js @@ -447,11 +447,11 @@ class AutomationSaveModal extends Component { deviceId: trigger.device, kind, }, - kind + kind === "booleanTrigger" ? { on: trigger.on } : { operator: trigger.operand, - value: trigger.value, + range: parseInt(trigger.value), } ) );