forked from platypush/platypush
Workaround for possible multiple camera parameter
error.
This commit is contained in:
parent
191d7a75ea
commit
a38ef6bc7a
1 changed files with 3 additions and 3 deletions
|
@ -17,12 +17,12 @@ class VideoWriter(ABC):
|
||||||
|
|
||||||
mimetype: Optional[str] = None
|
mimetype: Optional[str] = None
|
||||||
|
|
||||||
def __init__(self, camera, plugin, *_, **__):
|
def __init__(self, *_, **kwargs):
|
||||||
from platypush.plugins.camera import Camera, CameraPlugin
|
from platypush.plugins.camera import Camera, CameraPlugin
|
||||||
|
|
||||||
self.logger = logging.getLogger(self.__class__.__name__)
|
self.logger = logging.getLogger(self.__class__.__name__)
|
||||||
self.camera: Camera = camera
|
self.camera: Camera = kwargs.pop('camera')
|
||||||
self.plugin: CameraPlugin = plugin
|
self.plugin: CameraPlugin = kwargs.pop('plugin')
|
||||||
self.closed = False
|
self.closed = False
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
Loading…
Reference in a new issue