* Refactor rate limit helper to track time in seconds Currently we created datetime and timedelta objects to enforce the rate limit. When the rate limit was being hit hard, this got expensive. We now use floats everywhere instead as they are much cheaper which is important when we are running up against a rate limit, which is by definition a hot path The rate limit helper is currently only used for templates and we do not have any code in the code base that directly passes in a rate limit so the impact to custom components is expected to be negligible if any * misesd two |
||
---|---|---|
.. | ||
fixtures | ||
snapshots | ||
__init__.py | ||
conftest.py | ||
test_alarm_control_panel.py | ||
test_binary_sensor.py | ||
test_button.py | ||
test_config_flow.py | ||
test_cover.py | ||
test_fan.py | ||
test_image.py | ||
test_init.py | ||
test_light.py | ||
test_lock.py | ||
test_manual_trigger_entity.py | ||
test_number.py | ||
test_select.py | ||
test_sensor.py | ||
test_switch.py | ||
test_template_entity.py | ||
test_trigger.py | ||
test_vacuum.py | ||
test_weather.py |