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

1.3-beta6 #28

Merged
merged 7 commits into from
Sep 10, 2024
Merged

1.3-beta6 #28

merged 7 commits into from
Sep 10, 2024

Conversation

slaxor505
Copy link
Contributor

Please merge.

- Degrees F to C conversion before uploading sensors data
- Sanity check for sensors values
…lidate_measurement` for validating measurements.

- Added unit tests for `get_supported_state_value` covering various scenarios for different device classes and units of measurement.
- Added more debug logging for better visibility.
unit_of_measurement = "°C"

# Convert Kelvin to Celsius
elif unit_of_measurement == "K":
Copy link
Owner

Choose a reason for hiding this comment

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

Should this be "K" or °K"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing the code, mate. It is just "K" as per:

https://github.com/home-assistant/core/blob/be5577c2f9486167696aa7920cdb9e342cda2bf7/homeassistant/const.py
`

Temperature units

class UnitOfTemperature(StrEnum):
"""Temperature units."""

CELSIUS = "°C"
FAHRENHEIT = "°F"
KELVIN = "K"

`

@slaxor505
Copy link
Contributor Author

I have just refactored this to HASS constants to be perfect :)

@slaxor505
Copy link
Contributor Author

Just hold on merging it. It seems that there is an issue.

- Extra DEBUG logging for visibility
@slaxor505
Copy link
Contributor Author

I fixed the issue within json_timeseries library. Please merge.

@slaxor505
Copy link
Contributor Author

Hey @Olen . Just wanted to follow-up on this PR. Can you please merge as soon as possible? Thank you.

@Olen Olen merged commit b79c4a7 into Olen:main Sep 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants