Remove text sensor from if not configured

This commit is contained in:
sqozz 2024-09-21 22:34:07 +02:00
parent 30485bafe1
commit 0ab450619a

View file

@ -290,6 +290,8 @@ void tw7100Component::update_sensor(std::pair<std::string, std::string> data) {
ESP_LOGV(TAG, "updating msel select"); ESP_LOGV(TAG, "updating msel select");
} else if (cmd == "SPEED") { } else if (cmd == "SPEED") {
ESP_LOGV(TAG, "updating speed select"); ESP_LOGV(TAG, "updating speed select");
#endif
#ifdef USE_TEXT_SENSOR
} else if (cmd == "SNO") { } else if (cmd == "SNO") {
serial_->publish_state(value_string); serial_->publish_state(value_string);
#endif #endif