π΅ Media Browsing Standards Compliance
This release fixes media browsing implementation to properly follow Home Assistant's media player integration standards.
β¨ What's New
- MediaClass Compliance: Updated all media browsing to use proper
MediaClassenum instead ofMediaType - Intelligent Classification: Albums now use
MediaClass.ALBUM, folders useMediaClass.DIRECTORY - Standards Compliant: Follows Home Assistant's official media player integration guidelines
π§ Improvements
- NET RADIO Browsing:
- Folders now use
MediaClass.DIRECTORY - Stations use
MediaClass.TRACK
- Folders now use
- SERVER Browsing:
- Containers use
MediaClass.DIRECTORYorMediaClass.ALBUMas appropriate - Playable tracks use
MediaClass.TRACK
- Containers use
- Navigation Elements: Pagination and back buttons use proper
MediaClass.DIRECTORY
π Bug Fixes
- Fixed incorrect
MediaType.CHANNELusage in NET RADIO browsing - Fixed incorrect
MediaType.MUSICusage in SERVER browsing - Replaced all improper MediaType usage with correct MediaClass enum values
π§ Technical Details
This release ensures proper separation of concerns:
- MediaClass: Used for categorizing browsable content in media browser UI
- MediaType: Used for identifying actual media content type for playback
The integration now fully complies with Home Assistant's media player standards, ensuring better compatibility and future-proofing.
π¦ Installation
Via HACS (Recommended):
- Go to HACS β Integrations
- Search for "Yamaha R-N301"
- Update to v1.4.2
Manual Update:
- Download the latest release
- Replace the
custom_components/yamaha_rn301folder - Restart Home Assistant
Full Changelog: v1.4.1...v1.4.2