mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +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 self._source[:-7]
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
async def _pipe_call(self, pipe_name, base_function_name):
|
async def _pipe_call(self, pipe_name, base_function_name) -> None:
|
||||||
if self._pipe_control_api.get(pipe_name):
|
if pipe := self._pipe_control_api.get(pipe_name):
|
||||||
return await getattr(
|
await getattr(
|
||||||
self._pipe_control_api[pipe_name],
|
pipe,
|
||||||
PIPE_FUNCTION_MAP[pipe_name][base_function_name],
|
PIPE_FUNCTION_MAP[pipe_name][base_function_name],
|
||||||
)()
|
)()
|
||||||
|
return
|
||||||
_LOGGER.warning("No pipe control available for %s", pipe_name)
|
_LOGGER.warning("No pipe control available for %s", pipe_name)
|
||||||
|
|
||||||
async def async_browse_media(
|
async def async_browse_media(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user