[2.5] silence deprecation notices in new components
minor #13098 [2.5] silence deprecation notices in new components (nicolas-grekas)

This PR was merged into the 2.5 branch.

Discussion
----------

[2.5] silence deprecation notices in new components

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

6872e51 [2.5] silence deprecation notices in new components