Use source list property instead of the attribute in Denon AVR integration (#59768)
parent
41e341028e
commit
f1d75f0dd7
|
@ -155,7 +155,6 @@ class DenonDevice(MediaPlayerEntity):
|
||||||
name=config_entry.title,
|
name=config_entry.title,
|
||||||
)
|
)
|
||||||
self._attr_sound_mode_list = receiver.sound_mode_list
|
self._attr_sound_mode_list = receiver.sound_mode_list
|
||||||
self._attr_source_list = receiver.input_func_list
|
|
||||||
|
|
||||||
self._receiver = receiver
|
self._receiver = receiver
|
||||||
self._update_audyssey = update_audyssey
|
self._update_audyssey = update_audyssey
|
||||||
|
@ -246,6 +245,11 @@ class DenonDevice(MediaPlayerEntity):
|
||||||
"""Return the state of the device."""
|
"""Return the state of the device."""
|
||||||
return self._receiver.state
|
return self._receiver.state
|
||||||
|
|
||||||
|
@property
|
||||||
|
def source_list(self):
|
||||||
|
"""Return a list of available input sources."""
|
||||||
|
return self._receiver.input_func_list
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_volume_muted(self):
|
def is_volume_muted(self):
|
||||||
"""Return boolean if volume is currently muted."""
|
"""Return boolean if volume is currently muted."""
|
||||||
|
|
Loading…
Reference in New Issue