Merge pull request #9858 from barbudor/pr-fix-switchmode_15

Fix switchmode 15 publish old switch state
This commit is contained in:
Theo Arends 2020-11-14 21:10:39 +01:00 committed by GitHub
commit e21df63850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}