From 56b74db6f15cb5e4db1a601f67a2fa2ac6292d37 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Mon, 19 Jun 2023 03:07:09 -0700 Subject: [PATCH] Add a developer blog post for upcoming service API changes (#1799) --- blog/2023-06-14-service-calls.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 blog/2023-06-14-service-calls.md diff --git a/blog/2023-06-14-service-calls.md b/blog/2023-06-14-service-calls.md new file mode 100644 index 00000000..38ace0bc --- /dev/null +++ b/blog/2023-06-14-service-calls.md @@ -0,0 +1,14 @@ +--- +author: Allen Porter +authorURL: https://github.com/allenporter +title: "Service Call API changes" +--- + +This change affects Service Call APIs: `hass.services.async_call` and `hass.services.call`. + +For Home Assistant Core 2023.7 some input arguments and the return values for service calls have +been changed to prepare to better support [Service return values](https://github.com/home-assistant/architecture/discussions/777#discussioncomment-6127898). + +Previously, the return value of `True` on success and `False` if a timeout occurred. The `limit` +argument that sets a timeout has been removed, and the boolean return value has been removed. +Callers that would like a timeout should now set their own using asyncio. \ No newline at end of file