mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-15 16:18:30 +00:00
Fix for settings
HTTP-Headers settings no longer crash the application on the device. Group settings removed as they could be be changed a second time due to a bug in the SDK.
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
title="@Strings.SettingsApiKey"
|
||||
prompt="@Strings.SettingsApiKeyPrompt"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -26,7 +26,7 @@
|
||||
title="@Strings.SettingsApiUrl"
|
||||
prompt="https://homeassistant.local/api"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -34,7 +34,7 @@
|
||||
title="@Strings.SettingsConfigUrl"
|
||||
prompt="https://homeassistant.local/local/garmin/menu.json"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" required="true" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -51,14 +51,12 @@
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<group enableIfTrue="@Properties.cache_config" id="wifiLteExection" title="@Strings.WifiLteExecution" description="@Strings.WifiLteExecutionDescription">
|
||||
<setting
|
||||
propertyKey="@Properties.wifi_lte_execution"
|
||||
title="@Strings.WifiLteExecutionEnable"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
</group>
|
||||
<setting
|
||||
propertyKey="@Properties.wifi_lte_execution"
|
||||
title="@Strings.WifiLteExecutionEnable"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.enable_vibration"
|
||||
@ -92,7 +90,7 @@
|
||||
propertyKey="@Properties.pin"
|
||||
title="@Strings.SettingsPin"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
<settingConfig type="alphaNumeric" maxLength="4" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -119,22 +117,22 @@
|
||||
<settingConfig type="numeric" min="5" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_name"
|
||||
title="@Strings.SettingsUserHttpHeaderName"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_value"
|
||||
title="@Strings.SettingsUserHttpHeaderValue"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
<!--
|
||||
<group id="userHttpHeader" title="@Strings.SettingsUserHttpHeader" description="@Strings.SettingsUserHttpHeaderDescription">
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_name"
|
||||
title="@Strings.SettingsUserHttpHeaderName"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.user_http_header_value"
|
||||
title="@Strings.SettingsUserHttpHeaderValue"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
</group>
|
||||
|
||||
-->
|
||||
<setting
|
||||
propertyKey="@Properties.webhook_id"
|
||||
title="@Strings.WebhookId"
|
||||
|
@ -57,9 +57,7 @@
|
||||
<string id="SettingsConfigUrl">URL for menu configuration (JSON).</string>
|
||||
<string id="SettingsCacheConfig">Should the application cache the menu configuration?</string>
|
||||
<string id="SettingsClearCache">Should the application clear the existing cache next time it is started?</string>
|
||||
<string id="WifiLteExecution">Wi-Fi/LTE execution mode.</string>
|
||||
<string id="WifiLteExecutionEnable">Enable executing commands over Wi-Fi/LTE.</string>
|
||||
<string id="WifiLteExecutionDescription">Allows the app to start without phone connection (when menu is cached), and prompt to execute command over Wi-Fi/LTE.</string>
|
||||
<string id="SettingsVibration">Should the application provide feedback via vibrations?</string>
|
||||
<string id="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of inactivity to save the device battery.</string>
|
||||
<string id="SettingsPollDelay">Additional poll delay (in seconds). Adds a delay between the status update of all menu items.</string>
|
||||
|
Reference in New Issue
Block a user