Workaround for possible multiple camera parameter error.

This commit is contained in:
Fabio Manganiello 2024-02-15 00:51:04 +00:00
parent 191d7a75ea
commit a38ef6bc7a

View file

@ -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