Add a name to the background service call tasks (#91252)

This commit is contained in:
J. Nick Koston 2023-04-11 19:23:25 -10:00 committed by GitHub
parent 0916701a0b
commit 237faf62ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1876,7 +1876,10 @@ class ServiceRegistry:
except Exception: # pylint: disable=broad-except
_LOGGER.exception("Error executing service: %s", service_call)
self._hass.async_create_task(catch_exceptions())
self._hass.async_create_task(
catch_exceptions(),
f"service call background {service_call.domain}.{service_call.service}",
)
async def _execute_service(
self, handler: Service, service_call: ServiceCall