minor corrections

This commit is contained in:
KoenBreeman 2024-08-16 12:51:26 +02:00
parent 14fb532598
commit 0c9a8dae93
2 changed files with 1 additions and 10 deletions

View File

@ -17,15 +17,6 @@ SeeedMultiChannelRelaySwitch = seeedmultichannelrelay_ns.class_(
CONF_INTERLOCK_WAIT_TIME = "interlock_wait_time"
CONF_Relay_1 = 1
CONF_Relay_2 = 2
CONF_Relay_3 = 3
CONF_Relay_4 = 4
CONF_Relay_5 = 5
CONF_Relay_6 = 6
CONF_Relay_7 = 7
CONF_Relay_8 = 8
RelayBit_ = seeedmultichannelrelay_ns.enum("RelayBit", is_class=True)
CONFIG_SCHEMA = (

View File

@ -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_, state);
this->parent_->relay_write(this->channel_-1, state);
// Acknowledge new state by publishing it
this->publish_state(state);