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

Use one regex for Hass.io URL check #16710

Merged
merged 1 commit into from
Sep 19, 2018
Merged

Use one regex for Hass.io URL check #16710

merged 1 commit into from
Sep 19, 2018

Conversation

pvizeli
Copy link
Member

@pvizeli pvizeli commented Sep 19, 2018

Description:

A small optimize for slow CPU system. Instead to loop a list of regex every API call, we use on regex to check the URL path. I add also more tests to check the api access.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

@ghost ghost assigned pvizeli Sep 19, 2018
@ghost ghost added the in progress label Sep 19, 2018
@balloob balloob merged commit d376049 into dev Sep 19, 2018
@ghost ghost removed the in progress label Sep 19, 2018
@balloob balloob deleted the hassio-url-check branch September 19, 2018 10:57
@balloob balloob mentioned this pull request Sep 28, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants