forked from home-assistant/core
Use source list property instead of the attribute in Denon AVR integration (#59768)
This commit is contained in:
committed by
Paulus Schoutsen
parent
0e12bce174
commit
711a00225f
@@ -155,7 +155,6 @@ class DenonDevice(MediaPlayerEntity):
|
||||
name=config_entry.title,
|
||||
)
|
||||
self._attr_sound_mode_list = receiver.sound_mode_list
|
||||
self._attr_source_list = receiver.input_func_list
|
||||
|
||||
self._receiver = receiver
|
||||
self._update_audyssey = update_audyssey
|
||||
@@ -246,6 +245,11 @@ class DenonDevice(MediaPlayerEntity):
|
||||
"""Return the state of the device."""
|
||||
return self._receiver.state
|
||||
|
||||
@property
|
||||
def source_list(self):
|
||||
"""Return a list of available input sources."""
|
||||
return self._receiver.input_func_list
|
||||
|
||||
@property
|
||||
def is_volume_muted(self):
|
||||
"""Return boolean if volume is currently muted."""
|
||||
|
Reference in New Issue
Block a user