mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 13:38:04 +00:00
Update service call return values and error handling (#94657)
* Update return signature of service calls * Add timeout error handling in websocket api for service calls * Update recorder tests to remove assertion on service call * Remove timeout behavior and update callers that depend on it today * Fix tests * Add missing else * await coro directly * Fix more tests * Update the intent task to use wait instead of timeout * Remove script service call limits and limit constants * Update tests that depend on service call limits * Use wait instead of wait_for and add test * Update homeassistant/helpers/intent.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -113,7 +113,7 @@ async def test_available_update_can_be_installed(
|
||||
assert update is not None
|
||||
assert update.state == "on"
|
||||
|
||||
assert await hass.services.async_call(
|
||||
await hass.services.async_call(
|
||||
"update",
|
||||
"install",
|
||||
{"entity_id": "update.mock_title_fritz_os"},
|
||||
|
||||
Reference in New Issue
Block a user