@PolarLava, thanks for the heads-up and the detailed info, I’ve pushed an update after tests on version 2021.3.4
1 Like
@ed0zer there’s been some more changes again to HA that’s now spitting out deprecation warnings:
Testing configuration at /config
WARNING:homeassistant.components.media_player.const:MEDIA_TYPE_MUSIC was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.MUSIC instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_VOLUME_STEP was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.VOLUME_STEP instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_TURN_ON was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.TURN_ON instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_TURN_OFF was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.TURN_OFF instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_STOP was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.STOP instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_SELECT_SOURCE was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.SELECT_SOURCE instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_SEEK was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.SEEK instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_VOLUME_SET was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.VOLUME_SET instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_VOLUME_MUTE was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.VOLUME_MUTE instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_PLAY was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.PLAY instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_PREVIOUS_TRACK was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.PREVIOUS_TRACK instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_NEXT_TRACK was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.NEXT_TRACK instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_PAUSE was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.PAUSE instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:SUPPORT_SHUFFLE_SET was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaPlayerEntityFeature.SHUFFLE_SET instead, please report it to the author of the 'foobar' custom integration
For the most part it’s just dropping the “SUPPORT_” prefixes on the constants in media_player.py. In the case of MEDIA_TYPE_MUSIC, changing it to “MUSIC” as it recommends results in a warning…
Testing configuration at /config
Incorrect config
General Warnings:
- Platform error 'media_player' from integration 'foobar' - cannot import name 'MUSIC' from 'homeassistant.components.media_player.const' (/usr/src/homeassistant/homeassistant/components/media_player/const.py)
Successful config (partial)
General Warnings:
So just going back to “MEDIA_TYPE_MUSIC” you get the deprecation warning (twice?) as well as the error…
Testing configuration at /config
WARNING:homeassistant.components.media_player.const:MEDIA_TYPE_MUSIC was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.MUSIC instead, please report it to the author of the 'foobar' custom integration
WARNING:homeassistant.components.media_player.const:MEDIA_TYPE_MUSIC was used from foobar, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.MUSIC instead, please report it to the author of the 'foobar' custom integration
Incorrect config
General Warnings:
- Platform error 'media_player' from integration 'foobar' - cannot import name 'VOLUME_STEP' from 'homeassistant.components.media_player.const' (/usr/src/homeassistant/homeassistant/components/media_player/const.py)
Successful config (partial)
General Warnings:
I don’t find an obvious easy change for this one and got tired of trying to figure it out!