Problem with media playback. Google cast

Hello everyone. I’m having trouble playing media on my Google speakers and Nest Hub. Neither TTS nor media playback (radio or files) works. Every attempt results in the following error:

“TypeError: BaseMediaPlayer.play_media() got an unexpected keyword argument ‘media_content_id’”

As already described in the issue on GitHub.

Does anyone have an idea what might be causing this? No changes have been made to the system.

I am getting this exact issue but with tts to cast devices!!! this has only starting happening today!

I can’t help, but this started for me today too.
Just wanted you to know you’re not alone!

It started in 2025.5.3 and I thought it will be fixed in 2025.6.0 but still also happening to me

Same here. When it first started, it seemed that it could be resolved by restarting Home Assistant. But now I get the error instantly. I can cast and tts to other devices, just not to Google speaker.

Same issue started maybe 2 weeks back. Removing and re-adding the integration didn’t help.

It seems to work fine until I send audio to a non-Google device.
Once I do that (eg tts to my dashboard tablet) I can’t cast a local file, start a radio stream or tts to any Google device.

Restarting HA fixes it but it breaks again as soon as I cast somewhere else, like the Home devices get jealous.