Fixed bugs in automation fast update

This commit is contained in:
Claudio Maggioni 2020-05-08 16:03:42 +02:00
parent dbc6223954
commit b27c6a3f51

View file

@ -447,11 +447,11 @@ class AutomationSaveModal extends Component {
deviceId: trigger.device, deviceId: trigger.device,
kind, kind,
}, },
kind kind === "booleanTrigger"
? { on: trigger.on } ? { on: trigger.on }
: { : {
operator: trigger.operand, operator: trigger.operand,
value: trigger.value, range: parseInt(trigger.value),
} }
) )
); );