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

temperature: Add Fahrenheit support. #895

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

rjframe
Copy link
Contributor

@rjframe rjframe commented Oct 22, 2020

Allow using the Fahrenheit temperature scale in the Temperature block's display and thresholds.

In order to adjust the default thresholds based on the scale used, I've used Options to provide delayed initialization in Temperature's new(), rather than when serde deserializes the configuration. Alternatively I think we could manually deserialize the struct.

@ammgws
Copy link
Collaborator

ammgws commented Oct 23, 2020

Cheers, I guess it's useful for the one country that still uses imperial units 😄

If you come up with a better way then send another PR to refactor

@ammgws ammgws merged commit 654fe50 into greshake:master Oct 23, 2020
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.

None yet

2 participants