From 2c6f4da3fe2b2f8fa8013223c7ee2d6207f92c8c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:00:42 -0500 Subject: [PATCH] fix --- components/ratgdo/switch/ratgdo_switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/switch/ratgdo_switch.cpp b/components/ratgdo/switch/ratgdo_switch.cpp index 128580c..355a25e 100644 --- a/components/ratgdo/switch/ratgdo_switch.cpp +++ b/components/ratgdo/switch/ratgdo_switch.cpp @@ -17,7 +17,7 @@ namespace ratgdo { { bool value = state == LockState::LOCK_STATE_LOCKED; this->state = value; - this->publish_state(); + this->publish_state(value); } void RATGDOSwitch::write_state(bool state) {