mirror of
https://github.com/esphome/esphome.git
synced 2026-01-08 19:20:51 -07:00
disable loop when unused
This commit is contained in:
@@ -16,6 +16,8 @@ void TemplateWaterHeater::setup() {
|
||||
restore->perform();
|
||||
}
|
||||
}
|
||||
if (!this->current_temperature_f_.has_value() && !this->mode_f_.has_value())
|
||||
this->disable_loop();
|
||||
}
|
||||
|
||||
water_heater::WaterHeaterTraits TemplateWaterHeater::traits() {
|
||||
|
||||
Reference in New Issue
Block a user