* Schedule max dt for Riemann Integral sensor * Simplify validation. Dont integrate on change if either old or new state is not numeric. * Add validation to integration methods. Rollback requirement for both states to be always numeric. * Use 0 max_dt for disabling time based updates. * Use docstring instead of pass keyword in abstract methods. * Use time_period config validation for max_dt * Use new_state for scheduling max_dt. Only schedule if new state is numeric. * Use default 0 (None) for max_dt. * Rename max_dt to max_age. * Rollback accidental renaming of different file * Remove unnecessary and nonsensical max value. * Improve new config description * Use DurationSelector in config flow * Rename new config to max_sub_interval * Simplify by checking once for the integration strategy * Use positive time period validation of sub interval in platform schema Co-authored-by: Erik Montnemery <erik@montnemery.com> * Remove return keyword Co-authored-by: Erik Montnemery <erik@montnemery.com> * Simplify scheduling of interval exceeded callback Co-authored-by: Erik Montnemery <erik@montnemery.com> * Improve documentation * Be more clear about when time based integration is disabled. * Update homeassistant/components/integration/config_flow.py --------- Co-authored-by: Erik Montnemery <erik@montnemery.com> |
||
---|---|---|
.. | ||
__init__.py | ||
test_config_flow.py | ||
test_init.py | ||
test_sensor.py |