Added second HTTP Header field

NB. Need to update the translations in Github actions again.
This commit is contained in:
Philip Abbey
2026-02-28 17:46:13 +00:00
parent 3e85b695ec
commit 651c9462e0
40 changed files with 74 additions and 86 deletions

View File

@@ -111,18 +111,36 @@
<property id="battery_level_refresh_rate" type="number">15</property>
<!--
Header 1:
A user specified HTTP header name to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header_name" type="string"></property>
<property id="user_http_header1_name" type="string"></property>
<!--
Header 1:
A user specified HTTP header value to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header_value" type="string"></property>
<property id="user_http_header1_value" type="string"></property>
<!--
Header 2:
A user specified HTTP header name to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header2_name" type="string"></property>
<!--
Header 2:
A user specified HTTP header value to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header2_value" type="string"></property>
<!--
Clear the Webhook ID on next application start, and reauthenticate,

View File

@@ -124,18 +124,37 @@
<settingConfig type="numeric" min="5" />
</setting>
<setting
propertyKey="@Properties.user_http_header_name"
title="@Strings.SettingsUserHttpHeaderName"
<group
id="HttpHeader"
title="@Strings.SettingsUserHttpHeader"
description="@Strings.SettingsUserHttpHeaderDescription"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header_value"
title="@Strings.SettingsUserHttpHeaderValue"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header1_name"
title="@Strings.SettingsUserHttpHeader1Name"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header1_value"
title="@Strings.SettingsUserHttpHeader1Value"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header2_name"
title="@Strings.SettingsUserHttpHeader2Name"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header2_value"
title="@Strings.SettingsUserHttpHeader2Value"
>
<settingConfig type="alphaNumeric" />
</setting>
</group>
<setting
propertyKey="@Properties.clear_webhook_id"

View File

@@ -71,11 +71,10 @@
<string id="SettingsTextAlign">Left (off) or Right (on) Menu Alignment.</string>
<string id="SettingsLeftToRight">Left to right</string>
<string id="SettingsRightToLeft">Right to Left</string>
<string id="SettingsWidgetStart">(Widget only) Automatically start the application from the widget without waiting for a tap.</string>
<string id="SettingsEnableBatteryLevel">Enable the background service to send the device battery level, location and (if supported) activity data to HomeAssistant.</string>
<string id="SettingsBatteryLevelRefreshRate">The refresh rate (in minutes) at which the background service should repeat sending data.</string>
<string id="SettingsUserHttpHeader">User supplied HTTP header</string>
<string id="SettingsUserHttpHeaderDescription">Some HomeAssistant installations require the specification of a custom HTTP header in order to function.</string>
<string id="SettingsUserHttpHeader">User supplied HTTP headers</string>
<string id="SettingsUserHttpHeaderDescription">Some HomeAssistant installations require the specification of custom HTTP headers in order to function.</string>
<string id="SettingsUserHttpHeader1Name">User supplied HTTP-Header 1: Name</string>
<string id="SettingsUserHttpHeader1Value">User supplied HTTP-Header 1: Value</string>
<string id="SettingsUserHttpHeader2Name">User supplied HTTP-Header 2: Name</string>