v1.1.7
Changes
Removal of update_interval Option:
- The update_interval field has been removed from the configuration flow. This parameter was not being actively used and was redundant in the current setup.
Refactoring Sensor Initialization:
- The sensors now correctly initialize their settings from both the configuration and options flow, ensuring that values set during the options flow are reflected immediately after Home Assistant is restarted.
- Sensors will now retrieve and apply changes to parameters like lowpass_time_constant, median_sampling_size, and ema_smoothing_window both during initialization and dynamically at runtime.
Streamlined Sensor Configuration:
- Sensors now retrieve the latest option values directly from the configuration entry rather than storing them separately. This helps eliminate the need for individual _update_settings functions in each sensor.
- Introduced logic to handle changes to configuration parameters while the integration is running, without requiring restarts of Home Assistant.
Fix for Median Sensor Data Points Handling:
- The Median Sensor now correctly handles dynamic changes to the sampling_size, trimming or expanding the list of data points accordingly. This ensures that the median is always calculated based on the correct number of data points, even if the configuration changes during runtime.
Resolved Time Calculation Issues:
Fixed an issue with time_since_last_update not being calculated correctly, ensuring accurate time tracking for sensor updates.
Full Changelog: v1.1.6...v1.1.7