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

Add TemperatureConverter helper #310

Merged
merged 1 commit into from
Oct 10, 2022
Merged

Add TemperatureConverter helper #310

merged 1 commit into from
Oct 10, 2022

Conversation

bachya
Copy link
Owner

@bachya bachya commented Oct 10, 2022

Describe what the PR does:

In support of #308, this PR adds another BaseUnitConverter subclass: TemperatureConverter. In the future, this building block will allow conversion to/from a larger variety of temperature-related units:

  • °C (Metric)
  • °F (Imperial)
  • K

Thanks to Home Assistant for the initial work and inspiration.

Does this fix a specific issue?

N/A

Checklist:

  • Confirm that one or more new tests are written for the new functionality.
  • Run tests and ensure everything passes (with 100% test coverage).
  • Update README.md with any new documentation.
  • Add yourself to AUTHORS.md.

@bachya bachya added the enhancement Enhancement of the code, not introducing new features. label Oct 10, 2022
@bachya bachya self-assigned this Oct 10, 2022
@bachya bachya merged commit 5ffacbc into dev Oct 10, 2022
@bachya bachya deleted the temp-converter branch October 10, 2022 19:46
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant