Fix implicit-return in denon (#122835)
This commit is contained in:
parent
7c92287f97
commit
b6f0893c33
1 changed files with 2 additions and 1 deletions
|
@ -253,11 +253,12 @@ class DenonDevice(MediaPlayerEntity):
|
|||
return SUPPORT_DENON
|
||||
|
||||
@property
|
||||
def source(self):
|
||||
def source(self) -> str | None:
|
||||
"""Return the current input source."""
|
||||
for pretty_name, name in self._source_list.items():
|
||||
if self._mediasource == name:
|
||||
return pretty_name
|
||||
return None
|
||||
|
||||
def turn_off(self) -> None:
|
||||
"""Turn off media player."""
|
||||
|
|
Loading…
Add table
Reference in a new issue