Fix PUSH_IGNORE_INV once more

This commit is contained in:
Theo Arends 2023-01-01 14:01:18 +01:00
parent c63919d783
commit 32a51da43d
1 changed files with 1 additions and 3 deletions

View File

@ -407,12 +407,10 @@ void SwitchHandler(uint32_t mode) {
}
break;
case PUSH_IGNORE:
case PUSH_IGNORE_INV:
Switch.last_state[i] = button; // Update switch state before publishing
MqttPublishSensor();
break;
case PUSH_IGNORE_INV:
MqttPublishSensor(); // Publishing before update
break;
}
Switch.last_state[i] = button;
}