Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 15, 2024
1 parent 6798973 commit 6f7627b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export default class {
// Eg converts abcd1234abcd1234 to AB:CD:12:34:AB:CD:12:34
// For sensors with an add on sensor like H5178
// Eg converts abcd1234abcd1234_1 to AB:CD:12:34:AB:CD:12:34_1
httpDevice.device = httpDevice.device.replace(/([a-zA-Z0-9]{2})(?=[a-zA-Z0-9])/g, "$&:").toUpperCase()
httpDevice.device = httpDevice.device.replace(/([a-z0-9]{2})(?=[a-z0-9])/gi, '$&:').toUpperCase()
}

// Check it's not a user-ignored device
Expand Down Expand Up @@ -1243,7 +1243,7 @@ export default class {
// Eg converts abcd1234abcd1234 to AB:CD:12:34:AB:CD:12:34
// For sensors with an add on sensor like H5178
// Eg converts abcd1234abcd1234_1 to AB:CD:12:34:AB:CD:12:34_1
device.device = device.device.replace(/([a-zA-Z0-9]{2})(?=[a-zA-Z0-9])/g, "$&:").toUpperCase()
device.device = device.device.replace(/([a-z0-9]{2})(?=[a-z0-9])/gi, '$&:').toUpperCase()
}

// Generate the UIID from which we can match our Homebridge accessory
Expand Down

0 comments on commit 6f7627b

Please sign in to comment.