diff --git a/esphome/components/ota/ota_backend.h b/esphome/components/ota/ota_backend.h index ed2718f980..09612d5592 100644 --- a/esphome/components/ota/ota_backend.h +++ b/esphome/components/ota/ota_backend.h @@ -115,7 +115,8 @@ concept OTABackendContract = requires(T backend, size_t image_size, uint8_t *dat { backend.end() } -> std::same_as; backend.abort(); { T::supports_compression() } -> std::same_as; - requires std::bool_constant::value || true; + // The value must be a constant expression + typename std::bool_constant; }; /** Listener interface for OTA state changes.