From 0cef9c6070577ea247f1c4f31e4024803334d637 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 15 Dec 2019 19:55:14 +0100 Subject: [PATCH] No need to explicitly specify request_queue and response_queue on Worker derived classes --- platypush/plugins/switch/wemo/scanner.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platypush/plugins/switch/wemo/scanner.py b/platypush/plugins/switch/wemo/scanner.py index 3c51f29e..6a3973c9 100644 --- a/platypush/plugins/switch/wemo/scanner.py +++ b/platypush/plugins/switch/wemo/scanner.py @@ -1,4 +1,3 @@ -import multiprocessing import socket from typing import Optional @@ -17,9 +16,8 @@ class ScanResult: class Scanner(Worker): timeout = 1.5 - def __init__(self, request_queue: multiprocessing.Queue, response_queue: multiprocessing.Queue, - port: int = WemoRunner.default_port): - super().__init__(request_queue, response_queue) + def __init__(self, port: int = WemoRunner.default_port, *args, **kwargs): + super().__init__(*args, **kwargs) self.port = port def process(self, addr: str) -> Optional[ScanResult]: