This refactoring was pulled out of https://github.com/home-assistant/core/pull/53676 as an initial step towards reverting the addition of the SegmentBuffer class, which will be unrolled back into a for loop. The StreamState class holds the persistent state in stream that is used across stream worker instantiations, e.g. state across a retry or url expiration, which primarily handles discontinuities. By itself, this PR is not a large win until follow up PRs further simplify the SegmentBuffer class. |
||
---|---|---|
.. | ||
auth | ||
components | ||
fixtures | ||
hassfest | ||
helpers | ||
mock | ||
resources | ||
scripts | ||
test_util | ||
testing_config | ||
util | ||
__init__.py | ||
bandit.yaml | ||
common.py | ||
conftest.py | ||
ignore_uncaught_exceptions.py | ||
test_bootstrap.py | ||
test_config.py | ||
test_config_entries.py | ||
test_core.py | ||
test_data_entry_flow.py | ||
test_exceptions.py | ||
test_loader.py | ||
test_main.py | ||
test_requirements.py | ||
test_runner.py | ||
test_setup.py | ||
test_test_fixtures.py |