From 1d8e53c54acf5b6122f385c1ace4bd0a352b6302 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 24 Sep 2024 15:10:25 +0200 Subject: [PATCH] Add blog for deprecation of Media player constants (#2332) * Add blog for deprecation of Media player constants * Minor language tweaks * Apply suggestions from code review Co-authored-by: Martin Hjelmare * Capitalize --------- Co-authored-by: Franck Nijhof Co-authored-by: Martin Hjelmare --- blog/2024-09-23-constants-media-player-deprecation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blog/2024-09-23-constants-media-player-deprecation.md diff --git a/blog/2024-09-23-constants-media-player-deprecation.md b/blog/2024-09-23-constants-media-player-deprecation.md new file mode 100644 index 00000000..2ee623e8 --- /dev/null +++ b/blog/2024-09-23-constants-media-player-deprecation.md @@ -0,0 +1,11 @@ +--- +author: G Johansson +authorURL: https://github.com/gjohansson-ST +authorImageURL: https://avatars.githubusercontent.com/u/62932417?v=4 +authorTwitter: GJohansson +title: "Deprecating constants for Media Player" +--- + +As of Home Assistant Core 2022.5, the feature flag constants used in `MediaPlayerEntity` were deprecated and replaced by the `MediaPlayerEntityFeature` enum. Later, in 2022.10, the repeat mode, media type, and media class constants were deprecated and replaced by `RepeatMode`, `MediaType`, and `MediaClass`, respectively. + +However, no proper deprecation was done, so now in 2024.10 we start the one-year deprecation period, and the constants will stop working from 2025.10, to ensure all custom integration authors have time to adjust.