From 86e734ee356f7e6eacdacb70696730ea094023b0 Mon Sep 17 00:00:00 2001 From: Groovylein Date: Sat, 18 Nov 2023 16:10:33 +0100 Subject: [PATCH] correct flake8 --- src/jukebox/components/player/plugin/__init__.py | 1 + src/jukebox/components/volume/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jukebox/components/player/plugin/__init__.py b/src/jukebox/components/player/plugin/__init__.py index ed5c3c7d6..ca0e24781 100644 --- a/src/jukebox/components/player/plugin/__init__.py +++ b/src/jukebox/components/player/plugin/__init__.py @@ -28,6 +28,7 @@ # The various backends backend_mpd: Optional[MPDBackend] = None + def start_event_loop(loop: asyncio.AbstractEventLoop): # https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.shutdown_asyncgens logger.debug("Start player AsyncIO Background Event Loop") diff --git a/src/jukebox/components/volume/__init__.py b/src/jukebox/components/volume/__init__.py index b4fd8a35a..ae7e4229e 100644 --- a/src/jukebox/components/volume/__init__.py +++ b/src/jukebox/components/volume/__init__.py @@ -62,7 +62,6 @@ import logging import threading import time -import traceback import pulsectl import jukebox.cfghandler @@ -649,6 +648,7 @@ def finalize(): else: pulse_control.publish_volume() + @plugin.atexit def atexit(**ignored_kwargs): global pulse_monitor