core/tests/components/derivative
Juan Grande 8e7960fa0e
Fix bug in derivative sensor when source sensor's state is constant (#139230)
Previously, when the source sensor's state remains constant, the derivative
sensor repeats its latest value indefinitely.

This patch fixes this bug by consuming the state_reported event and updating
the sensor's output even when the source sensor doesn't change its state.
2025-03-01 09:10:35 +01:00
..
__init__.py
test_config_flow.py
test_init.py Use shorthand attribute in derivative sensor (#128610) 2024-10-18 09:33:02 +02:00
test_sensor.py Fix bug in derivative sensor when source sensor's state is constant (#139230) 2025-03-01 09:10:35 +01:00