disable loop when unused

This commit is contained in:
J. Nick Koston
2026-01-03 13:44:32 -10:00
parent 095f369ebd
commit 744b8af2c7

View File

@@ -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() {