mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix implicit-return in forked_daapd (#122842)
This commit is contained in:
parent
fd7c92879c
commit
41c7414d97
@ -827,12 +827,13 @@ class ForkedDaapdMaster(MediaPlayerEntity):
|
||||
return self._source[:-7]
|
||||
return ""
|
||||
|
||||
async def _pipe_call(self, pipe_name, base_function_name):
|
||||
if self._pipe_control_api.get(pipe_name):
|
||||
return await getattr(
|
||||
self._pipe_control_api[pipe_name],
|
||||
async def _pipe_call(self, pipe_name, base_function_name) -> None:
|
||||
if pipe := self._pipe_control_api.get(pipe_name):
|
||||
await getattr(
|
||||
pipe,
|
||||
PIPE_FUNCTION_MAP[pipe_name][base_function_name],
|
||||
)()
|
||||
return
|
||||
_LOGGER.warning("No pipe control available for %s", pipe_name)
|
||||
|
||||
async def async_browse_media(
|
||||
|
Loading…
x
Reference in New Issue
Block a user