Skip to content

Commit

Permalink
update SwitchOnOff after clicking it, so that actual state is display…
Browse files Browse the repository at this point in the history
…ed (see also domoticz/domoticz#4035)
  • Loading branch information
wewa00 committed Jan 11, 2021
1 parent 1e38412 commit d6241eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/SwitchOnOff.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class SwitchOnOff extends Component {
switchcmd: this.getPushCommand()
};
this.mqtt.publish(message);
this.mqtt.publish({'command': 'getdeviceinfo', 'idx': this.props.idx });
}

getButtonStyle(swapStyles = false) {
Expand Down

0 comments on commit d6241eb

Please sign in to comment.