Skip to content

Commit

Permalink
Fix scene trigger on device change, threshold not clickable (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Jun 30, 2023
1 parent b19cff3 commit 68d9c13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Text } from 'preact-i18n';

class ThresholdDeviceState extends Component {
handleThresholdOnlyModeChange = e => {
this.props.updateTriggerProperty(this.props.index, 'threshold_only', e.target.checked);
this.props.updateTriggerProperty(this.props.index, 'threshold_only', !e.target.checked);
};

render({ trigger }) {
Expand Down

0 comments on commit 68d9c13

Please sign in to comment.