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

Deprecated constants for HA 2024.10 (MEDIA_TYPE_MUSIC, MEDIA_TYPE_VIDEO, STATE_RECORDING, STATE_STREAMING) #1877

Closed
hmmbob opened this issue Sep 26, 2024 · 0 comments

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Sep 26, 2024

HA 2024.10.0b0 throws the following warnings:

2024-09-26 08:41:10.593 WARNING (ImportExecutor_0) [homeassistant.components.media_player.const] MEDIA_TYPE_MUSIC was used from xiaomi_miot, 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 'xiaomi_miot' custom integration
2024-09-26 08:41:10.602 WARNING (ImportExecutor_0) [homeassistant.components.media_player.const] MEDIA_TYPE_VIDEO was used from xiaomi_miot, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.VIDEO instead, please report it to the author of the 'xiaomi_miot' custom integration
2024-09-26 08:41:10.807 WARNING (ImportExecutor_0) [homeassistant.components.camera] STATE_RECORDING was used from xiaomi_miot, this is a deprecated constant which will be removed in HA Core 2025.10. Use CameraState.RECORDING instead, please report it to the author of the 'xiaomi_miot' custom integration
2024-09-26 08:41:10.816 WARNING (ImportExecutor_0) [homeassistant.components.camera] STATE_STREAMING was used from xiaomi_miot, this is a deprecated constant which will be removed in HA Core 2025.10. Use CameraState.STREAMING instead, please report it to the author of the 'xiaomi_miot' custom integration

Developer announcement here:
https://developers.home-assistant.io/blog/2024/09/23/constants-media-player-deprecation/
https://developers.home-assistant.io/blog/2024/09/23/state-constants-camera-deprecation/

There is a one-year deprecation period, and the constants will stop working from 2025.10

For users:

You can ignore this warning, the component works as usual. Any issue you think is related to this isn't: this is only a warning in your logs - nothing is broken.

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 a pull request may close this issue.

2 participants