From a44015542bec2f3d78d6da741547f8fabff915cf Mon Sep 17 00:00:00 2001 From: KoenBreeman <121864590+KoenBreeman@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:32:53 +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 add9a624e1..a05f71557a 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);