From 621cbc0d375e6ddfdd85718e105e2321e5b902c3 Mon Sep 17 00:00:00 2001 From: KoenBreeman <121864590+KoenBreeman@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:16:27 +0200 Subject: [PATCH] ... --- .../switch/seeedmultichannelrelay_switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/seeedmultichannelrelay/switch/seeedmultichannelrelay_switch.cpp b/esphome/components/seeedmultichannelrelay/switch/seeedmultichannelrelay_switch.cpp index f1747e1fa1..add9a624e1 100644 --- a/esphome/components/seeedmultichannelrelay/switch/seeedmultichannelrelay_switch.cpp +++ b/esphome/components/seeedmultichannelrelay/switch/seeedmultichannelrelay_switch.cpp @@ -63,7 +63,7 @@ void SeeedMultiChannelRelaySwitch::write_state(bool state) { } // This will be called every time the user requests a state change. - this->parent_->relay_write(this->channel_-1, state); + this->parent_->relay_write(this->channel_ -1, state); // Acknowledge new state by publishing it this->publish_state(state);