Allow calling qr() in device.py without image arg

This commit is contained in:
Dennis Fokin 2022-03-29 14:31:26 +02:00
parent af3e188fee
commit c5ace4ea10
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC

View File

@ -101,7 +101,7 @@ class RootNode(RpcNode):
@action(closes_child=False)
def qr(self, params, event, signal):
return dict(result=scan_qr(params["image"]))
return dict(result=scan_qr(params.get("image")))
class ReadersNode(RpcNode):