Add Tuya message for no datapoints (#804)

See also https://github.com/esphome/feature-requests/issues/352#issuecomment-546579206
This commit is contained in:
Otto Winter 2019-10-27 12:28:01 +01:00
parent 1bf01a9081
commit e0ad5a9009
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -36,6 +36,9 @@ void Tuya::dump_config() {
else else
ESP_LOGCONFIG(TAG, " Datapoint %d: unknown", info.id); 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); this->check_uart_settings(9600);
} }