mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add device class to denonavr (#100711)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
5b422daf36
commit
4133162053
@ -19,6 +19,7 @@ from denonavr.exceptions import (
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.media_player import (
|
||||
MediaPlayerDeviceClass,
|
||||
MediaPlayerEntity,
|
||||
MediaPlayerEntityFeature,
|
||||
MediaPlayerState,
|
||||
@ -218,6 +219,7 @@ class DenonDevice(MediaPlayerEntity):
|
||||
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
_attr_device_class = MediaPlayerDeviceClass.RECEIVER
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@ -238,7 +240,6 @@ class DenonDevice(MediaPlayerEntity):
|
||||
name=receiver.name,
|
||||
)
|
||||
self._attr_sound_mode_list = receiver.sound_mode_list
|
||||
|
||||
self._receiver = receiver
|
||||
self._update_audyssey = update_audyssey
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user