Skip to content
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

Merged
merged 4 commits into from
Nov 7, 2019
Merged

Fix for name issue raised in #170 #172

merged 4 commits into from
Nov 7, 2019

Conversation

NorthernMan54
Copy link
Contributor

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.

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.
@NorthernMan54 NorthernMan54 changed the title Fix for #170 Fix for name issue raised in #170 Oct 30, 2019
lib/HAPBridgeNode.js Show resolved Hide resolved
@Shaquu Shaquu added the help wanted Used for setup help label Nov 2, 2019
@Shaquu Shaquu changed the base branch from master to dev November 2, 2019 17:59
Copy link
Member

@Shaquu Shaquu left a 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

const paddedStr = noDecimalStr.padStart(16, '0')
return paddedStr.match(/.{1,2}/g).join(':')
const noDecimalStr = nodeId.replace('.', '');
const paddedStr = noDecimalStr.padEnd(12, '0");
Copy link
Member

@Shaquu Shaquu Nov 2, 2019

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).

Copy link
Contributor Author

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

@Shaquu Shaquu merged commit d0563d4 into NRCHKB:dev Nov 7, 2019
@Shaquu
Copy link
Member

Shaquu commented Nov 7, 2019

Thanks, hope it won't break anything.

@Shaquu Shaquu mentioned this pull request Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Used for setup help
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants