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

Avoid usage of deprecated media player constants #73

Merged

Conversation

mathebox
Copy link
Collaborator

With this PR deprecated constants for the media player are getting replaced:

MEDIA_TYPE_* and REPEAT_MODE_* constants are deprecated as of Home Assistant 2022.10.

Instead the MediaType / RepeatMode enum should be used instead. (see here and here)


Additionally, unused imports have been removed, which should have been removed as part of #66.
To simplify the imports, all media player related imports are now done via homeassistant.components.media_player.

- Replace deprecated constants
- Remove unused imports
- Simplify imports
@B5r1oJ0A9G B5r1oJ0A9G added the enhancement New feature or request label Sep 29, 2024
@B5r1oJ0A9G B5r1oJ0A9G merged commit dd73fe2 into B5r1oJ0A9G:master Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants