Context manager that tracks a global task.
Definition at line 142 of file timeout.py.
◆ __init__()
| None homeassistant.util.timeout._GlobalTaskContext.__init__ |
( |
|
self, |
|
|
TimeoutManager |
manager, |
|
|
asyncio.Task[Any] |
task, |
|
|
float |
timeout, |
|
|
float |
cool_down |
|
) |
| |
Initialize internal timeout context manager.
Definition at line 145 of file timeout.py.
◆ __aenter__()
| Self homeassistant.util.timeout._GlobalTaskContext.__aenter__ |
( |
|
self | ) |
|
◆ __aexit__()
| bool | None homeassistant.util.timeout._GlobalTaskContext.__aexit__ |
( |
|
self, |
|
|
type[BaseException] | None |
exc_type, |
|
|
BaseException | None |
exc_val, |
|
|
TracebackType | None |
exc_tb |
|
) |
| |
◆ _cancel_task()
| None homeassistant.util.timeout._GlobalTaskContext._cancel_task |
( |
|
self | ) |
|
|
private |
◆ _on_timeout()
| None homeassistant.util.timeout._GlobalTaskContext._on_timeout |
( |
|
self | ) |
|
|
private |
◆ _on_wait()
| None homeassistant.util.timeout._GlobalTaskContext._on_wait |
( |
|
self | ) |
|
|
private |
Wait until zones are done.
Definition at line 255 of file timeout.py.
◆ _start_timer()
| None homeassistant.util.timeout._GlobalTaskContext._start_timer |
( |
|
self | ) |
|
|
private |
Start timeout handler.
Definition at line 209 of file timeout.py.
◆ _stop_timer()
| None homeassistant.util.timeout._GlobalTaskContext._stop_timer |
( |
|
self | ) |
|
|
private |
◆ pause()
| None homeassistant.util.timeout._GlobalTaskContext.pause |
( |
|
self | ) |
|
Pause timers while it freeze.
Definition at line 247 of file timeout.py.
◆ reset()
| None homeassistant.util.timeout._GlobalTaskContext.reset |
( |
|
self | ) |
|
Reset timer after freeze.
Definition at line 251 of file timeout.py.
◆ state()
| _State homeassistant.util.timeout._GlobalTaskContext.state |
( |
|
self | ) |
|
Return state of the Global task.
Definition at line 201 of file timeout.py.
◆ zones_done_signal()
| None homeassistant.util.timeout._GlobalTaskContext.zones_done_signal |
( |
|
self | ) |
|
Signal that all zones are done.
Definition at line 205 of file timeout.py.
◆ _cancelling
| homeassistant.util.timeout._GlobalTaskContext._cancelling |
|
private |
◆ _expiration_time
| homeassistant.util.timeout._GlobalTaskContext._expiration_time |
|
private |
◆ _on_wait_task
| homeassistant.util.timeout._GlobalTaskContext._on_wait_task |
|
private |
◆ _state
| homeassistant.util.timeout._GlobalTaskContext._state |
|
private |
◆ _time_left
| homeassistant.util.timeout._GlobalTaskContext._time_left |
|
private |
◆ _timeout_handler
| homeassistant.util.timeout._GlobalTaskContext._timeout_handler |
|
private |
The documentation for this class was generated from the following file: