mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 12:37:45 +01:00
Updated write relay so that the corrected channels are written.
This commit is contained in:
parent
a44015542b
commit
b0f75a1830
@ -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_ , state);
|
||||
|
||||
// Acknowledge new state by publishing it
|
||||
this->publish_state(state);
|
||||
|
Loading…
Reference in New Issue
Block a user