mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Bump version tag on async_timeout warning (#65339)
This commit is contained in:
parent
5c3d4cb9a5
commit
114da0bd4f
@ -17,7 +17,7 @@ def timeout(
|
|||||||
loop = asyncio.get_running_loop()
|
loop = asyncio.get_running_loop()
|
||||||
else:
|
else:
|
||||||
report(
|
report(
|
||||||
"called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2",
|
"called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.3",
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
if delay is not None:
|
if delay is not None:
|
||||||
@ -30,7 +30,7 @@ def timeout(
|
|||||||
def current_task(loop: asyncio.AbstractEventLoop) -> asyncio.Task[Any] | None:
|
def current_task(loop: asyncio.AbstractEventLoop) -> asyncio.Task[Any] | None:
|
||||||
"""Backwards compatible current_task."""
|
"""Backwards compatible current_task."""
|
||||||
report(
|
report(
|
||||||
"called async_timeout.current_task. The current_task call is deprecated and calls will fail after Home Assistant 2022.2; use asyncio.current_task instead",
|
"called async_timeout.current_task. The current_task call is deprecated and calls will fail after Home Assistant 2022.3; use asyncio.current_task instead",
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
return asyncio.current_task()
|
return asyncio.current_task()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user