From 32a51da43d064447a5e1d0b1c67990de7f8945a9 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 1 Jan 2023 14:01:18 +0100 Subject: [PATCH] Fix PUSH_IGNORE_INV once more --- tasmota/tasmota_support/support_switch.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasmota/tasmota_support/support_switch.ino b/tasmota/tasmota_support/support_switch.ino index 5b66f301b..f00160131 100644 --- a/tasmota/tasmota_support/support_switch.ino +++ b/tasmota/tasmota_support/support_switch.ino @@ -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; }