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

Remove Underscore to Space Replacement in MQTT Code #604

Closed
wants to merge 5 commits into from
Closed

Conversation

Sunoo
Copy link
Collaborator

@Sunoo Sunoo commented Jul 5, 2020

This is a fix to the underscore to space replacement in the MQTT messages.

In Javascript, string.replace only works on the first instance of the pattern found unless regular expressions are used.

@Sunoo Sunoo changed the title Correct Underscore to Space Replacement in MQTT Code Remove Underscore to Space Replacement in MQTT Code Jul 5, 2020
@Sunoo
Copy link
Collaborator Author

Sunoo commented Jul 5, 2020

Looks like #605 is basically doing what this is doing at this point, so closing now.

@Sunoo Sunoo closed this Jul 5, 2020
Copy link
Contributor

@donavanbecker donavanbecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should still use some of this

@Sunoo
Copy link
Collaborator Author

Sunoo commented Jul 5, 2020

I'm working on a new pull request right now to add resetting the motion sensor from MQTT right now, should be opening it soon.

@Sunoo
Copy link
Collaborator Author

Sunoo commented Jul 5, 2020

@donavanbecker As mentioned earlier, I've opened pull request #606

@donavanbecker
Copy link
Contributor

donavanbecker commented Jul 5, 2020

Merged, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants