mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Fix core test RuntimeWarnings (#97730)
This commit is contained in:
parent
e905ac173f
commit
c33e3ce212
@ -1247,7 +1247,7 @@ async def test_serviceregistry_async_service_raise_exception(
|
|||||||
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=True)
|
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=True)
|
||||||
|
|
||||||
# Non-blocking service call never throw exception
|
# Non-blocking service call never throw exception
|
||||||
hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=False)
|
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=False)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
|
||||||
@ -1267,7 +1267,7 @@ async def test_serviceregistry_callback_service_raise_exception(
|
|||||||
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=True)
|
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=True)
|
||||||
|
|
||||||
# Non-blocking service call never throw exception
|
# Non-blocking service call never throw exception
|
||||||
hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=False)
|
await hass.services.async_call("test_domain", "REGISTER_CALLS", blocking=False)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user