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);