Make HassJob job_type lookup lazy (#112563)
This commit is contained in:
parent
a7b4cd3512
commit
e12e129065
2 changed files with 7 additions and 4 deletions
|
@ -2190,7 +2190,7 @@ async def test_hassjob_forbid_coroutine() -> None:
|
|||
coro = bla()
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
ha.HassJob(coro)
|
||||
ha.HassJob(coro).job_type
|
||||
|
||||
# To avoid warning about unawaited coro
|
||||
await coro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue