From 04d39efd5f582b1f5ede22b58478f1f5e9b89aa6 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 20 Mar 2025 16:28:29 +0100 Subject: [PATCH] Add blog post about changed media player toggle (#2603) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add blog post about changed media player toggle * Fix typo * Apply suggestions from code review Co-authored-by: Martin Hjelmare * Update blog/2025-03-14-media-player-toggle-adjusted.md Co-authored-by: Martin Hjelmare * Update blog/2025-03-14-media-player-toggle-adjusted.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update 2025-03-14-media-player-toggle-adjusted.md * Update blog/2025-03-14-media-player-toggle-adjusted.md Co-authored-by: Abílio Costa --------- Co-authored-by: Martin Hjelmare Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Abílio Costa --- blog/2025-03-14-media-player-toggle-adjusted.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 blog/2025-03-14-media-player-toggle-adjusted.md diff --git a/blog/2025-03-14-media-player-toggle-adjusted.md b/blog/2025-03-14-media-player-toggle-adjusted.md new file mode 100644 index 00000000..dc86fa12 --- /dev/null +++ b/blog/2025-03-14-media-player-toggle-adjusted.md @@ -0,0 +1,14 @@ +--- +author: Erik Montnemery +authorURL: https://github.com/emontnemery +title: "Media player toggle action changed" +--- + +The implementation of the toggle action service has been adjusted in the media player base class. +The media player will now be turned on if it is in the states `off` or `standby`; in all other states, it will be turned off. + +Before this change, the media player would also be turned on if it was in state `idle`. This was not in line with the meaning of the `idle` state, as it is counted as [a state where the device is already turned on](/docs/core/entity/media-player#states). + +Custom integrations which have overridden the `async_toggle` may need to update their implementations. + +The change is introduced in the [home assistant core PR #78192](https://github.com/home-assistant/core/pull/78192).