mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9858 from barbudor/pr-fix-switchmode_15
Fix switchmode 15 publish old switch state
This commit is contained in:
commit
e21df63850
|
@ -404,6 +404,7 @@ void SwitchHandler(uint32_t mode) {
|
|||
}
|
||||
break;
|
||||
case PUSH_IGNORE:
|
||||
Switch.last_state[i] = button; // Update switch state before publishing
|
||||
MqttPublishSensor();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue