mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Fix duplicate tuya time warning (#5243)
This commit is contained in:
parent
3a899e28dc
commit
b05a3fbb55
1 changed files with 4 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
||||||
#include "tuya.h"
|
#include "tuya.h"
|
||||||
#include "esphome/components/network/util.h"
|
#include "esphome/components/network/util.h"
|
||||||
|
#include "esphome/core/gpio.h"
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
#include "esphome/core/util.h"
|
#include "esphome/core/util.h"
|
||||||
#include "esphome/core/gpio.h"
|
|
||||||
|
|
||||||
#ifdef USE_WIFI
|
#ifdef USE_WIFI
|
||||||
#include "esphome/components/wifi/wifi_component.h"
|
#include "esphome/components/wifi/wifi_component.h"
|
||||||
|
@ -253,12 +253,11 @@ void Tuya::handle_command_(uint8_t command, uint8_t version, const uint8_t *buff
|
||||||
time_id->add_on_time_sync_callback([this] { this->send_local_time_(); });
|
time_id->add_on_time_sync_callback([this] { this->send_local_time_(); });
|
||||||
this->time_sync_callback_registered_ = true;
|
this->time_sync_callback_registered_ = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
ESP_LOGW(TAG, "LOCAL_TIME_QUERY is not handled because time is not configured");
|
ESP_LOGW(TAG, "LOCAL_TIME_QUERY is not handled because time is not configured");
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
ESP_LOGE(TAG, "LOCAL_TIME_QUERY is not handled");
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case TuyaCommandType::VACUUM_MAP_UPLOAD:
|
case TuyaCommandType::VACUUM_MAP_UPLOAD:
|
||||||
this->send_command_(
|
this->send_command_(
|
||||||
|
|
Loading…
Reference in a new issue