mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
...
This commit is contained in:
parent
75bc99e07e
commit
621cbc0d37
@ -63,7 +63,7 @@ void SeeedMultiChannelRelaySwitch::write_state(bool state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This will be called every time the user requests a state change.
|
// 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
|
// Acknowledge new state by publishing it
|
||||||
this->publish_state(state);
|
this->publish_state(state);
|
||||||
|
Loading…
Reference in New Issue
Block a user