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

Slugify trackr device_id #6062

Merged
merged 2 commits into from Feb 17, 2017
Merged

Conversation

w1ll1am23
Copy link
Contributor

@w1ll1am23 w1ll1am23 commented Feb 17, 2017

Description:
What the title says

Related issue (if applicable): fixes #6044

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

@mention-bot
Copy link

@w1ll1am23, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MartinHjelmare to be a potential reviewer.

@@ -58,7 +59,7 @@ def _update_info(self, now=None) -> None:
trackr_id = trackr.tracker_id()
trackr_device_id = trackr.id()
lost = trackr.lost()
dev_id = trackr.name().replace(" ", "_")
dev_id = slugify(trackr.name().replace(" ", "_"))
Copy link
Member

Choose a reason for hiding this comment

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

You can remove the replace with slugify

@pvizeli pvizeli merged commit 8a5fe38 into home-assistant:dev Feb 17, 2017
@home-assistant home-assistant locked and limited conversation to collaborators May 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TrackR component not removing special characters in entity_id
5 participants