Convert values to integer if rounding precision is zero. With that a value which is an integer before filtering can be configured to stay integer when using precision = 0. This also aligns behavior of filters to how rounding behaves in tempaltes (homeassistant/helpers/template.py, function forgiving_round). |
||
---|---|---|
.. | ||
auth | ||
components | ||
fixtures | ||
hassfest | ||
helpers | ||
mock | ||
resources | ||
scripts | ||
test_util | ||
testing_config | ||
util | ||
__init__.py | ||
bandit.yaml | ||
common.py | ||
conftest.py | ||
test_bootstrap.py | ||
test_config.py | ||
test_config_entries.py | ||
test_core.py | ||
test_data_entry_flow.py | ||
test_loader.py | ||
test_main.py | ||
test_requirements.py | ||
test_setup.py |