perf(common): poll power state on the warm tier (#56)
/power/0 and /power/vs/0 had no poll_tier, so they only ever refreshed on the once-per-30s summary poll -- everything else that drives real-time switch/climate/fan state (e.g. remote-control enablement) is already on the faster subscribe/subpoll 'warm' cadence for exactly this reason. Scoped to just this one tier bump; the model-specific priority-flip claim in the same issue thread isn't independently verified, so it isn't part of this change.
This commit is contained in:
2 files changed
+15
No files matched your search
@@ -152,6 +152,14 @@ class TestPowerFallback:
|
||||
assert switch.exists_fn(resources['/power/0'], resources) is True
|
||||
assert sensor.exists_fn(resources['/power/0'], resources) is False
|
||||
|
||||
def test_polled_warm_so_power_state_reflects_quickly(self):
|
||||
"""issue #56 follow-up: neither href had a poll_tier, so power state
|
||||
only ever refreshed on the once-per-30s summary poll instead of the
|
||||
subscribe/subpoll cadence 'warm'/'hot' hrefs get -- same reasoning
|
||||
as REMOTE_CONTROL_GENERIC/VS_FALLBACK's own 'warm' tier."""
|
||||
assert common.POWER_GENERIC.poll_tier == 'warm'
|
||||
assert common.POWER_VS_FALLBACK.poll_tier == 'warm'
|
||||
|
||||
|
||||
class TestWmSetinfoFlags:
|
||||
def test_washer_fixture_carries_setinfo_from_device0(self):
|
||||
|
||||
Reference in new issue
Block a user