Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated media constants #2

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

mrunde
Copy link
Contributor

@mrunde mrunde commented Oct 22, 2024

The MEDIA_CLASS_* and MEDIA_TYPE_* constants are deprecated and produce warn logs like these:

MEDIA_TYPE_ARTIST was used from airmusic, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.ARTIST instead, please report it to the author of the 'airmusic' custom integration

I replaced the usage of them with the new constants and updated the imports accordingly.

Nice work by the way. I really enjoy being able to integrate my internet radio with Home Assistant that way :)

The `MEDIA_CLASS_*` and `MEDIA_TYPE_*` constants are deprecated and produce warn logs like these:

`MEDIA_TYPE_ARTIST was used from airmusic, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.ARTIST instead, please report it to the author of the 'airmusic' custom integration`

I replaced the usage of them with the new constants and updated the imports accordingly.
@DominikWrobel DominikWrobel merged commit 7689154 into DominikWrobel:main Oct 23, 2024
2 checks passed
@DominikWrobel
Copy link
Owner

DominikWrobel commented Oct 23, 2024

Merged into release v1.8, thank you for the help and I'm glad you enjoy the integration.

If you like my work you can support me via:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants