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