Media Player not working after upgrading to 2022.2.6

Hi All

I upgraded from 2021.12.6 to 2022.2.6 this morning and my customer components for Sky Q no longer works. I can’t see anything in the release notes to point me in the right direction. Can anyone else.

Getting the following error.

Platform error media_player.skyq - cannot import name 'MediaPlayerDevice' from 'homeassistant.components.media_player' (/usr/src/homeassistant/homeassistant/components/media_player/__init__.py)

Are you actually asking for support for your own custom component? :wink:
At least, point us to the sources…

Sorry for the lack of information.

This is not my own customer component, one created by someone else several years back, found here:

I has worked fine until I upgraded to 2022.02. I jumped straight from December 2021 HA so not sure if there has been a breaking change.

Any help would be appreciated.

Thanks

MediaPlayerDevice was renamed to MediaPlayerEntity more that a year ago, and they removed the workaround that allowed unmaintained custom components to work.

Do the same rename in the custom code and it will solve (that) issue.

Thanks for your help, much appreciated

Hi Josh, I’ve updated the SkyQ repo to fix this and the manifest version.

2 Likes

You might want to consider using this version, which is still under full maintenance.