Information for a single timer.
Definition at line 36 of file timers.py.
◆ __post_init__()
| None homeassistant.components.intent.timers.TimerInfo.__post_init__ |
( |
|
self | ) |
|
Post initialization.
Definition at line 99 of file timers.py.
◆ add_time()
| None homeassistant.components.intent.timers.TimerInfo.add_time |
( |
|
self, |
|
|
int |
seconds |
|
) |
| |
Add time to the timer.
Seconds may be negative to remove time instead.
Definition at line 144 of file timers.py.
◆ cancel()
| None homeassistant.components.intent.timers.TimerInfo.cancel |
( |
|
self | ) |
|
◆ created_seconds()
| int homeassistant.components.intent.timers.TimerInfo.created_seconds |
( |
|
self | ) |
|
Return number of seconds on the timer when it was created.
This value is increased if time is added to the timer, exceeding its
original created_seconds.
Definition at line 114 of file timers.py.
◆ finish()
| None homeassistant.components.intent.timers.TimerInfo.finish |
( |
|
self | ) |
|
◆ name_normalized()
| str homeassistant.components.intent.timers.TimerInfo.name_normalized |
( |
|
self | ) |
|
Return normalized timer name.
Definition at line 123 of file timers.py.
◆ pause()
| None homeassistant.components.intent.timers.TimerInfo.pause |
( |
|
self | ) |
|
◆ seconds_left()
| int homeassistant.components.intent.timers.TimerInfo.seconds_left |
( |
|
self | ) |
|
Return number of seconds left on the timer.
Definition at line 104 of file timers.py.
◆ unpause()
| None homeassistant.components.intent.timers.TimerInfo.unpause |
( |
|
self | ) |
|
Unpause the timer.
Definition at line 139 of file timers.py.
◆ _created_seconds
| homeassistant.components.intent.timers.TimerInfo._created_seconds |
|
private |
◆ bool
| homeassistant.components.intent.timers.TimerInfo.bool |
|
static |
◆ int
| homeassistant.components.intent.timers.TimerInfo.int |
|
static |
◆ is_active
| homeassistant.components.intent.timers.TimerInfo.is_active |
◆ None
| homeassistant.components.intent.timers.TimerInfo.None |
|
static |
◆ seconds
| homeassistant.components.intent.timers.TimerInfo.seconds |
◆ updated_at
| homeassistant.components.intent.timers.TimerInfo.updated_at |
The documentation for this class was generated from the following file:
- core/homeassistant/components/intent/timers.py