From e0ad5a90097ebc1f74effdfcf23f8af249439e90 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sun, 27 Oct 2019 12:28:01 +0100 Subject: [PATCH] Add Tuya message for no datapoints (#804) See also https://github.com/esphome/feature-requests/issues/352#issuecomment-546579206 --- esphome/components/tuya/tuya.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/tuya/tuya.cpp b/esphome/components/tuya/tuya.cpp index 4efcf08fe6..cb796644c8 100644 --- a/esphome/components/tuya/tuya.cpp +++ b/esphome/components/tuya/tuya.cpp @@ -36,6 +36,9 @@ void Tuya::dump_config() { else ESP_LOGCONFIG(TAG, " Datapoint %d: unknown", info.id); } + if (this->datapoints_.empty()) { + ESP_LOGCONFIG(TAG, " Received no datapoints! Please make sure this is a supported Tuya device."); + } this->check_uart_settings(9600); }