mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-04-19 10:57:14 +00:00

* Add blog for deprecation of Media player constants * Minor language tweaks * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Capitalize --------- Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
753 B
753 B
author | authorURL | authorImageURL | authorTwitter | title |
---|---|---|---|---|
G Johansson | https://github.com/gjohansson-ST | https://avatars.githubusercontent.com/u/62932417?v=4 | GJohansson | 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.