Files
kiskaadee 90cafe37ff
Core Architecture & Invariant CI / validate (pull_request) Failing after 0s
fix(manager): transition to STANDBY_OFFLINE immediately on turn_off()
- Transition TvManager.turn_off() to STANDBY_OFFLINE, clear _connected_event, tear down active transports, and signal _on_ssap_disconnect(ErrorCode.TV_OFFLINE_STANDBY) only when response.get("returnValue") is True so get_state() reports stale immediately and wake() sends WoL without deadlocking on _connection_loop().

- Add behavior-driven unit tests in tests/test_manager.py covering immediate standby/teardown, immediate wake() with WoL and reconnection, and no-op behavior when returnValue is not True.

- Align tests/test_e2e_mvp.py to verify immediate standby after turn_off() without waiting for a delayed 1008 WebSocket close frame.
2026-11-22 14:00:16 -05:00
..