mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix implicit-return in denon (#122835)
This commit is contained in:
parent
7c92287f97
commit
b6f0893c33
@ -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…
x
Reference in New Issue
Block a user