mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Allow passing an optional name to async_track_time_interval (#90244)
* Allow passing an optional name to async_track_time_interval This is the same idea as passing a name to asyncio.create_task which makes it easier to track down bugs * more * short * still cannot find it * add a few more * test
This commit is contained in:
@@ -216,7 +216,10 @@ class RestoreStateData:
|
||||
|
||||
# Dump states periodically
|
||||
cancel_interval = async_track_time_interval(
|
||||
self.hass, _async_dump_states, STATE_DUMP_INTERVAL
|
||||
self.hass,
|
||||
_async_dump_states,
|
||||
STATE_DUMP_INTERVAL,
|
||||
"RestoreStateData dump states",
|
||||
)
|
||||
|
||||
async def _async_dump_states_at_stop(*_: Any) -> None:
|
||||
|
||||
Reference in New Issue
Block a user