mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +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