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:
		| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user