1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00

fix template regression

This commit is contained in:
J. Nick Koston
2025-10-29 14:26:33 -05:00
parent 299c937e67
commit c38a558df8

View File

@@ -7,9 +7,11 @@ namespace template_ {
static const char *const TAG = "template.binary_sensor";
void TemplateBinarySensor::setup() {
if (!this->f_.has_value())
if (!this->f_.has_value()) {
this->disable_loop();
this->loop();
} else {
this->loop();
}
}
void TemplateBinarySensor::loop() {