Skip to content

Rename air pollutants to air quality#19448

Merged
balloob merged 10 commits into
home-assistant:devfrom
eliseomartelli:rename_air_quality
Jan 5, 2019
Merged

Rename air pollutants to air quality#19448
balloob merged 10 commits into
home-assistant:devfrom
eliseomartelli:rename_air_quality

Conversation

@eliseomartelli
Copy link
Copy Markdown
Contributor

@eliseomartelli eliseomartelli commented Dec 19, 2018

Description:

Rename air pollutants to air quality

Related issue (if applicable): fixes home-assistant/architecture#122

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#7901

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

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

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Have we released any of the air pollutants platforms yet? If not, this is not a breaking change.

Comment thread tests/components/air_quality/__init__.py
@eliseomartelli
Copy link
Copy Markdown
Contributor Author

eliseomartelli commented Dec 19, 2018 via email

@eliseomartelli
Copy link
Copy Markdown
Contributor Author

The last force push should fix your concerns! @MartinHjelmare

@MartinHjelmare
Copy link
Copy Markdown
Member

This commit renames two files.
0984f63

This commit seems to remove one file and add another:
8d19d7d

Github is not always smart about this, but try to rename one file per commit. Then make additional changes after those commits.

@MartinHjelmare
Copy link
Copy Markdown
Member

Let's make sure we have a decision in the architecture issue before we merge this.

@eliseomartelli
Copy link
Copy Markdown
Contributor Author

ok! @MartinHjelmare I'm setting it as a WIP

@eliseomartelli eliseomartelli changed the title Rename air pollutants to air quality WIP: Rename air pollutants to air quality Dec 19, 2018
@eliseomartelli
Copy link
Copy Markdown
Contributor Author

Let's see if it works now :) @MartinHjelmare

@eliseomartelli eliseomartelli changed the title WIP: Rename air pollutants to air quality Rename air pollutants to air quality Dec 19, 2018
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

The test module move worked now, but not the package, but that's ok I think.


For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/air_pollutants_opensensemap/
https://home-assistant.io/components/air_quality_opensensemap/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The url is wrong. Look at eg a sensor platform to see the correct path format.

@@ -1,4 +1,4 @@
"""The tests for the Air Pollutants component."""
"""The tests for the Air Quality component."""
from homeassistant.components.air_pollutants import (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This module also needs updating.

Comment thread homeassistant/components/air_quality/__init__.py Outdated
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks good!

@MartinHjelmare
Copy link
Copy Markdown
Member

Should we merge this first or the other platforms that are going under air pollutants? If we merge the others first we would need to convert them too here.

@fabaff?

@balloob
Copy link
Copy Markdown
Member

balloob commented Jan 5, 2019

We should put this in beta I think ?

@balloob balloob merged commit 3a5ba77 into home-assistant:dev Jan 5, 2019
@ghost ghost removed the in progress label Jan 5, 2019
@balloob balloob added this to the 0.85.0 milestone Jan 5, 2019
@eliseomartelli eliseomartelli deleted the rename_air_quality branch January 5, 2019 16:43
@eliseomartelli
Copy link
Copy Markdown
Contributor Author

@balloob yep, should be in beta :)

balloob pushed a commit that referenced this pull request Jan 9, 2019
* mv component folder

* moved in airquality

* changed names in files

* renamed test init

* renamed test air quality

* renamed in tests

* renamed coverage

* fixed naming

* corrected attr names

* changed attr names
@balloob balloob mentioned this pull request Jan 10, 2019
rymsha pushed a commit to rymsha/home-assistant that referenced this pull request Jan 12, 2019
* mv component folder

* moved in airquality

* changed names in files

* renamed test init

* renamed test air quality

* renamed in tests

* renamed coverage

* fixed naming

* corrected attr names

* changed attr names
rymsha pushed a commit to rymsha/home-assistant that referenced this pull request Jan 12, 2019
* mv component folder

* moved in airquality

* changed names in files

* renamed test init

* renamed test air quality

* renamed in tests

* renamed coverage

* fixed naming

* corrected attr names

* changed attr names
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Feb 12, 2019
* mv component folder

* moved in airquality

* changed names in files

* renamed test init

* renamed test air quality

* renamed in tests

* renamed coverage

* fixed naming

* corrected attr names

* changed attr names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rename air_pollutants platform to air_quality ?

5 participants