mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2026-03-13 03:46:44 +00:00
Markdown documentation linting
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Numeric](Numeric.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
|
||||
|
||||
|
||||
# Actions
|
||||
|
||||
Two simple examples using a scene and a cover as `tap` menu items.
|
||||
@@ -47,8 +46,8 @@ For example:
|
||||
"confirm": true
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
The `confirm` field may contain a string instead of a Boolean in order to provide a custom message to display instead of the default "Sure?" text.
|
||||
|
||||
```json
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
Since [version 2.30](../History.md), it is possible to ovverride the text displayed on the Glance view. This page explains how to customise the text.
|
||||
|
||||
|
||||
## Default View
|
||||
|
||||
The default view has always been to display the status of the menu and API availability to indicate if there's a problem. This view has now been updated to be more colourful.
|
||||
@@ -13,7 +12,6 @@ The default view has always been to display the status of the menu and API avail
|
||||
|
||||
When either the API or the menu file is inaccessible, the fields will turn red.
|
||||
|
||||
|
||||
## Customised View
|
||||
|
||||
In order to customise the Glance view you need to add a `glance` field to the top level of the JSON menu file as illustrated here:
|
||||
@@ -68,7 +66,6 @@ It is possible to revert to the default glance content without deleting the temp
|
||||
|
||||
So the glance view object has a `type` field with two possible values: `info` and `status`. When the type is `status` the `content` field is not required.
|
||||
|
||||
|
||||
## Displayed Errors
|
||||
|
||||
The following shows the default glance when the menu file is not available at the specified URL.
|
||||
|
||||
Reference in New Issue
Block a user