media_player.template icon indicating copy to clipboard operation
media_player.template copied to clipboard

Receiving message in HA log that media_player.template is using depreciating features that will be unavailable in 2025

Open lambros414 opened this issue 1 year ago • 4 comments

The message in my log file is:

(MainThread) [homeassistant.helpers.entity] Entity media_player.now_playing (<class 'custom_components.media_player_template.media_player.MediaPlayerTemplate'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.TURN_ON|TURN_OFF|VOLUME_STEP|SELECT_SOURCE|SELECT_SOUND_MODE: 68992>, please create a bug report at https://github.com/Sennevds/media_player.template/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

I love this template and is making my life so much easier. Is this on anyone's radar to be fixed?

lambros414 avatar Jan 24 '24 23:01 lambros414

Hi. Touching base on this issue again. I have been seeing it for a while and haven't seen any comments or updates

Is anyone maintaining this code any longer?

Thanks!

lambros414 avatar Mar 07 '24 12:03 lambros414

Hi, chiming here too.

Am getting these warning messages post upgrade to 2024.3.0

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1597
First occurred: 8:42:57 PM (2 occurrences)
Last logged: 8:43:04 PM

Entity media_player.tdai_1120 (<class 'custom_components.media_player_template.media_player.MediaPlayerTemplate'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.VOLUME_SET|VOLUME_MUTE|TURN_ON|TURN_OFF|VOLUME_STEP|SELECT_SOURCE|SELECT_SOUND_MODE: 69004>, please create a bug report at https://github.com/Sennevds/media_player.template/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

borez avatar Mar 07 '24 13:03 borez