fixed thermostat trigger
This commit is contained in:
parent
c583c0e73e
commit
b25b319228
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,7 @@ const CreateTrigger = (props) => {
|
|||
const onChange = (e, val) => {
|
||||
props.inputChange(val);
|
||||
setActiveOperand(hasOperand.has(props.devices[val.value].kind));
|
||||
setActiveThermostat(props.devices[val.value].kind === 'thermostat');
|
||||
setActiveThermostat(props.devices[val.value].kind === 'thermostat' && props.condition);
|
||||
if (operandsRef.current) operandsRef.current.setValue('');
|
||||
if (valuesRef.current) valuesRef.current.inputRef.current.valueAsNumber = undefined;
|
||||
};
|
||||
|
@ -773,6 +773,7 @@ class AutomationSaveModal extends Component {
|
|||
);
|
||||
})}
|
||||
<CreateTrigger
|
||||
condition
|
||||
devices={this.props.devices}
|
||||
inputChange={this.onInputChangeCondition}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue