Remove text sensor from if not configured
This commit is contained in:
parent
30485bafe1
commit
0ab450619a
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue