Hi there,
is it possible to make the timeout for restful notifications configurable?
It is currently hardcoded to 10 seconds: https://github.com/home-assistant/core/blob/5781e5e03e9e86a8de602352de185831cfc40a4d/homeassistant/components/rest/notify.py#L198C28-L198C28
Configureation could be like this:
notify:
- name: announce
platform: rest
resource: http://localhost:8123/api/services/script/announce
timeout: 60
method: POST_JSON
headers:
authorization: !secret rest_token
content-type: "application/json"
data:
title: "{{title}}"
message: "{{message}}"
channel: silent_announcements
This config is already valid, but it seems it is not used - instead 10 is hardcoded.
I have a script for tts announcment with some custom logic around all my tts announcements, and all to gether this script can be a sync process taking longer than 10 seconds (dpeneding of the length of the announcement). So after 10s this timeout hits.