mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +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
|
return SUPPORT_DENON
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def source(self):
|
def source(self) -> str | None:
|
||||||
"""Return the current input source."""
|
"""Return the current input source."""
|
||||||
for pretty_name, name in self._source_list.items():
|
for pretty_name, name in self._source_list.items():
|
||||||
if self._mediasource == name:
|
if self._mediasource == name:
|
||||||
return pretty_name
|
return pretty_name
|
||||||
|
return None
|
||||||
|
|
||||||
def turn_off(self) -> None:
|
def turn_off(self) -> None:
|
||||||
"""Turn off media player."""
|
"""Turn off media player."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user