Skip to content

Commit

Permalink
allow non eq-3 devices in qr-code scan
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Nov 8, 2018
1 parent 9bfbfc0 commit 7325c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/homematic-manager.js
Expand Up @@ -132,7 +132,7 @@ let cameras = [];
const scanner = new Instascan.Scanner({video: document.getElementById('qr')});

scanner.addListener('scan', content => {
const match = content.match(/^EQ01SG([0-9A-F]{24})DLK([0-9A-F]{32})$/);
const match = content.match(/^[A-Z0-9]{4}SG([0-9A-F]{24})DLK([0-9A-F]{32})$/);
if (match) {
const [, sgtin, key] = match;
$('#add-device-ip-address').val(sgtin);
Expand Down

0 comments on commit 7325c51

Please sign in to comment.