mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 08:20:21 +00:00
[scheduler] Address Copilot feedback: %p type, NameType doc, test docstring
- Strip const for the %p varargs call (the format spec takes void*, not const void*; same representation everywhere but pedantically correct). - Mention SELF_POINTER in the NameType discriminator comment. - Update test docstring to match the actual const void * signatures.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
"""Test the self-keyed scheduler API.
|
||||
|
||||
Verifies that `Scheduler::set_timeout(void *, ...)` / `set_interval(void *, ...)` and the
|
||||
matching `cancel_*(void *)` overloads behave correctly: callbacks fire, distinct keys
|
||||
don't collide, self-keyed and component-keyed namespaces are independent, and
|
||||
re-registering the same key replaces the existing timer.
|
||||
Verifies that `Scheduler::set_timeout(const void *, ...)` /
|
||||
`set_interval(const void *, ...)` and the matching `cancel_*(const void *)`
|
||||
overloads behave correctly: callbacks fire, distinct keys don't collide,
|
||||
self-keyed and component-keyed namespaces are independent, and re-registering
|
||||
the same key replaces the existing timer.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
||||
Reference in New Issue
Block a user