Closed bouwew closed 2 weeks ago
The changes in this pull request involve modifications to various JSON configuration files and Python scripts, primarily focusing on the representation of numeric values. Integer values have been updated to floating-point representations across multiple devices and settings, enhancing the precision of measurements. Additionally, specific sensor values and attributes have been adjusted, including updates to the illuminance sensor for a thermostat and changes to the data types of several attributes in the SmileSensors
class. Overall, the updates ensure consistency in data representation across the system.
File Path | Change Summary |
---|---|
fixtures/legacy_anna/all_data.json | Updated illuminance sensor value from 151 to 150.8 for thermostat ID 0d266432d64443e283b5d708ae98b455 . |
plugwise/constants.py | Changed data types of multiple attributes in SmileSensors class from int to float and vice versa. |
plugwise/util.py | Modified format_measure function to format values based on magnitude; updated check_model function with new condition. |
tests/data/adam/*.json | Converted numerous integer values to floats across various device configurations (e.g., setpoint , lower_bound ). |
tests/data/anna/*.json | Updated integer values to floating-point representations across multiple device configurations. |
tests/data/p1/*.json | Changed integer sensor values to floating-point numbers in smart meter configurations. |
tests/data/stretch/*.json | Modified integer values in the sensors section to floating-point numbers across various devices. |
In the land of circuits and wires,
Where sensors dance and never tire,
Numbers now float, precise and bright,
Guiding devices through day and night.
A hop, a skip, a leap of cheer,
For every change, we hold so dear! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@CoMPaTech is this the rounding we want? Always show one decimal at minimum?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
bcc498d
) to head (46c74d7
). Report is 12 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Summary:
native_precision
: https://developers.home-assistant.io/blog/2023/01/25/sensor_rounding/Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores
pyproject.toml
from "1.5.1a3" to "1.5.1".