notifier: fix linter errors
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0e7c759bde
commit
bfc7ea3635
|
@ -23,7 +23,6 @@ if TYPE_CHECKING:
|
||||||
from ..confighelper import ConfigHelper
|
from ..confighelper import ConfigHelper
|
||||||
from ..common import WebRequest
|
from ..common import WebRequest
|
||||||
from .file_manager.file_manager import FileManager
|
from .file_manager.file_manager import FileManager
|
||||||
from .http_client import HttpClient
|
|
||||||
from .klippy_apis import KlippyAPI as APIComp
|
from .klippy_apis import KlippyAPI as APIComp
|
||||||
|
|
||||||
class Notifier:
|
class Notifier:
|
||||||
|
@ -120,7 +119,6 @@ class Notifier:
|
||||||
name = web_request.get_str("name")
|
name = web_request.get_str("name")
|
||||||
if name not in self.notifiers:
|
if name not in self.notifiers:
|
||||||
raise self.server.error(f"Notifier '{name}' not found", 404)
|
raise self.server.error(f"Notifier '{name}' not found", 404)
|
||||||
client: HttpClient = self.server.lookup_component("http_client")
|
|
||||||
notifier = self.notifiers[name]
|
notifier = self.notifiers[name]
|
||||||
|
|
||||||
kapis: APIComp = self.server.lookup_component('klippy_apis')
|
kapis: APIComp = self.server.lookup_component('klippy_apis')
|
||||||
|
|
Loading…
Reference in New Issue