-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for name issue raised in #170 #172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test code before submitting.
You change will cause errors like:
SyntaxError: Invalid or unexpected token
lib/HAPBridgeNode.js
Outdated
const paddedStr = noDecimalStr.padStart(16, '0') | ||
return paddedStr.match(/.{1,2}/g).join(':') | ||
const noDecimalStr = nodeId.replace('.', ''); | ||
const paddedStr = noDecimalStr.padEnd(12, '0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work? I can see single quote and double quote used (end of line 160, 0 has single quote on the left and double on the right).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A big oops yesterday, I was trying to be quick with the browser editor, rather than using the proper tools
Thanks, hope it won't break anything. |
This change will cause all end users devices to go "not responding" and you must unpair and repair in the Home app to resolve. You will lose all your room settings and automations with this fix.