From 0ab450619a75b4af21ce8bbe11b69f877615926f Mon Sep 17 00:00:00 2001 From: sqozz Date: Sat, 21 Sep 2024 22:34:07 +0200 Subject: [PATCH] Remove text sensor from if not configured --- tw7100.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tw7100.cpp b/tw7100.cpp index 83cea73..4de5463 100644 --- a/tw7100.cpp +++ b/tw7100.cpp @@ -290,6 +290,8 @@ void tw7100Component::update_sensor(std::pair data) { ESP_LOGV(TAG, "updating msel select"); } else if (cmd == "SPEED") { ESP_LOGV(TAG, "updating speed select"); +#endif +#ifdef USE_TEXT_SENSOR } else if (cmd == "SNO") { serial_->publish_state(value_string); #endif