From a38ef6bc7acf3915027f168040e6e45009db9a7a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 15 Feb 2024 00:51:04 +0000 Subject: [PATCH] Workaround for possible `multiple camera parameter` error. --- platypush/plugins/camera/model/writer/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/camera/model/writer/__init__.py b/platypush/plugins/camera/model/writer/__init__.py index 89f4e311d..cc7102adc 100644 --- a/platypush/plugins/camera/model/writer/__init__.py +++ b/platypush/plugins/camera/model/writer/__init__.py @@ -17,12 +17,12 @@ class VideoWriter(ABC): mimetype: Optional[str] = None - def __init__(self, camera, plugin, *_, **__): + def __init__(self, *_, **kwargs): from platypush.plugins.camera import Camera, CameraPlugin self.logger = logging.getLogger(self.__class__.__name__) - self.camera: Camera = camera - self.plugin: CameraPlugin = plugin + self.camera: Camera = kwargs.pop('camera') + self.plugin: CameraPlugin = kwargs.pop('plugin') self.closed = False @abstractmethod