Skip to content

Conversation

@balloob
Copy link
Member

@balloob balloob commented Mar 2, 2020

Breaking change

Proposed change

Add support for monitoring the coronovirus outbreak.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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

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

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@balloob balloob added this to the 0.106.3 milestone Mar 2, 2020
Co-Authored-By: Franck Nijhof <git@frenck.dev>
@balloob balloob merged commit 1603f7a into dev Mar 2, 2020
@balloob balloob deleted the coronavirus branch March 2, 2020 21:40
@balloob balloob removed this from the 0.106.3 milestone Mar 2, 2020
balloob added a commit that referenced this pull request Mar 2, 2020
* Add coronavirus integration

* Update homeassistant/components/coronavirus/manifest.json

Co-Authored-By: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
@balloob balloob mentioned this pull request Mar 2, 2020
@jurriaan
Copy link
Contributor

jurriaan commented Mar 2, 2020

Can we improve the default naming (entity_ids) of the generated sensors?

sensor.worldwide_current isn't that descriptive.

@balloob
Copy link
Member Author

balloob commented Mar 2, 2020

Yeah we can. What do you suggest?

@jurriaan
Copy link
Contributor

jurriaan commented Mar 2, 2020

Good question. Prefixing with corona_ works I guess? And maybe append something like _cases? So you get sensor.corona_worldwide_confirmed_cases?

@balloob
Copy link
Member Author

balloob commented Mar 2, 2020

coronavirus then, to not conflate things. We influence the entity ID by updating the name, so we will end up updating the name then, which will reflect into updated entity IDs for new users of the integration.

@balloob
Copy link
Member Author

balloob commented Mar 2, 2020

Thinking that if we shuffle it around, we can drop the word "cases"

  • Worldwide coronavirus confirmed: X people
  • Worldwide coronavirus current: X people
  • Worldwide coronavirus deaths: X people

@balloob
Copy link
Member Author

balloob commented Mar 2, 2020

Downside is that the badges are going to look bad. Current:

image

@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
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.

5 participants