mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Fix Tuya initialisation regression (#1408)
This commit is contained in:
parent
ff43b45113
commit
039810eef3
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void Tuya::handle_command_(uint8_t command, uint8_t version, const uint8_t *buff
|
||||||
}
|
}
|
||||||
if (this->init_state_ == TuyaInitState::INIT_CONF) {
|
if (this->init_state_ == TuyaInitState::INIT_CONF) {
|
||||||
// If mcu returned status gpio, then we can ommit sending wifi state
|
// If mcu returned status gpio, then we can ommit sending wifi state
|
||||||
if (this->gpio_status_ != 0) {
|
if (this->gpio_status_ != -1) {
|
||||||
this->init_state_ = TuyaInitState::INIT_DATAPOINT;
|
this->init_state_ = TuyaInitState::INIT_DATAPOINT;
|
||||||
this->schedule_empty_command_(TuyaCommandType::DATAPOINT_QUERY);
|
this->schedule_empty_command_(TuyaCommandType::DATAPOINT_QUERY);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue