Sennevds / media_player.template

Template media_player for Home Assistant
MIT License
126 stars 23 forks source link

[Feature] Add device_class #26

Closed ehendrix23 closed 3 years ago

ehendrix23 commented 3 years ago

First off, thank you very much. Been waiting for something like this quite a long time. :-)

This feature request is to add a configuration item for device_class. A media player currently can have a device class of tv, speaker, or receiver. There are other integrations that use this to determine what the capabilities are. For example, the HomeKit integration creates a "MediaPlayer" in HomeKit for media player, but when the device class for the HASS media player is set to tv then it creates a "TelevisionMediaPlayer" instead.

Thx.