forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yamllint (in pre-commit and CI) (home-assistant#33676)
* Add yamllint (in pre-commit and CI) * Fix linting for all YAML files * Bump and add it to requirements * Fix gen_requirements for pre-commit, remove 'v' from version
- Loading branch information
Showing
73 changed files
with
621 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
ignore: | | ||
azure-*.yml | ||
rules: | ||
braces: | ||
level: error | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
min-spaces-inside-empty: -1 | ||
max-spaces-inside-empty: -1 | ||
brackets: | ||
level: error | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
min-spaces-inside-empty: -1 | ||
max-spaces-inside-empty: -1 | ||
colons: | ||
level: error | ||
max-spaces-before: 0 | ||
max-spaces-after: 1 | ||
commas: | ||
level: error | ||
max-spaces-before: 0 | ||
min-spaces-after: 1 | ||
max-spaces-after: 1 | ||
comments: | ||
level: error | ||
require-starting-space: true | ||
min-spaces-from-content: 2 | ||
comments-indentation: | ||
level: error | ||
document-end: | ||
level: error | ||
present: false | ||
document-start: | ||
level: error | ||
present: false | ||
empty-lines: | ||
level: error | ||
max: 1 | ||
max-start: 0 | ||
max-end: 1 | ||
hyphens: | ||
level: error | ||
max-spaces-after: 1 | ||
indentation: | ||
level: error | ||
spaces: 2 | ||
indent-sequences: true | ||
check-multi-line-strings: false | ||
key-duplicates: | ||
level: error | ||
line-length: disable | ||
new-line-at-end-of-file: | ||
level: error | ||
new-lines: | ||
level: error | ||
type: unix | ||
trailing-spaces: | ||
level: error | ||
truthy: | ||
level: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
capture_image: | ||
description: Request a new image capture from a camera device. | ||
fields: | ||
entity_id: {description: Entity id of the camera to request an image., example: camera.downstairs_motion_camera} | ||
entity_id: | ||
description: Entity id of the camera to request an image. | ||
example: camera.downstairs_motion_camera | ||
change_setting: | ||
description: Change an Abode system setting. | ||
fields: | ||
setting: {description: Setting to change., example: beeper_mute} | ||
value: {description: Value of the setting., example: '1'} | ||
setting: | ||
description: Setting to change. | ||
example: beeper_mute | ||
value: | ||
description: Value of the setting. | ||
example: "1" | ||
trigger_automation: | ||
description: Trigger an Abode automation. | ||
fields: | ||
entity_id: {description: Entity id of the automation to trigger., example: switch.my_automation} | ||
entity_id: | ||
description: Entity id of the automation to trigger. | ||
example: switch.my_automation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Describes the format for available arlo services | ||
|
||
update: | ||
description: Update the state for all cameras and the base station. | ||
description: Update the state for all cameras and the base station. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
# Describes the format for available automation services | ||
|
||
turn_on: | ||
description: Enable an automation. | ||
fields: | ||
entity_id: | ||
description: Name of the automation to turn on. | ||
example: 'automation.notify_home' | ||
example: "automation.notify_home" | ||
|
||
turn_off: | ||
description: Disable an automation. | ||
fields: | ||
entity_id: | ||
description: Name of the automation to turn off. | ||
example: 'automation.notify_home' | ||
example: "automation.notify_home" | ||
|
||
toggle: | ||
description: Toggle an automation. | ||
fields: | ||
entity_id: | ||
description: Name of the automation to toggle on/off. | ||
example: 'automation.notify_home' | ||
example: "automation.notify_home" | ||
|
||
trigger: | ||
description: Trigger the action of an automation. | ||
fields: | ||
entity_id: | ||
description: Name of the automation to trigger. | ||
example: 'automation.notify_home' | ||
example: "automation.notify_home" | ||
skip_condition: | ||
description: Whether or not the condition will be skipped (defaults to True). | ||
example: True | ||
example: true | ||
|
||
reload: | ||
description: Reload the automation configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Describes the format for available Blink services | ||
|
||
blink_update: | ||
description: Force a refresh. | ||
description: Force a refresh. | ||
|
||
trigger_camera: | ||
description: Request named camera to take new image. | ||
fields: | ||
name: | ||
description: Name of camera to take new image. | ||
example: 'Living Room' | ||
description: Request named camera to take new image. | ||
fields: | ||
name: | ||
description: Name of camera to take new image. | ||
example: "Living Room" | ||
|
||
save_video: | ||
description: Save last recorded video clip to local file. | ||
fields: | ||
name: | ||
description: Name of camera to grab video from. | ||
example: 'Living Room' | ||
filename: | ||
description: Filename to writable path (directory may need to be included in whitelist_dirs in config) | ||
example: '/tmp/video.mp4' | ||
description: Save last recorded video clip to local file. | ||
fields: | ||
name: | ||
description: Name of camera to grab video from. | ||
example: "Living Room" | ||
filename: | ||
description: Filename to writable path (directory may need to be included in whitelist_dirs in config) | ||
example: "/tmp/video.mp4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
update: | ||
description: Trigger manual tracker update | ||
description: Trigger manual tracker update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# Describes the format for available component services | ||
|
||
process: | ||
description: Launch a conversation from a transcribed text. | ||
fields: | ||
text: | ||
description: Transcribed text | ||
example: Turn all lights on | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
randomize_device_tracker_data: | ||
description: Demonstrates using a device tracker to see where devices are located | ||
description: Demonstrates using a device tracker to see where devices are located |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
download_file: | ||
description: Downloads a file to the download location. | ||
fields: | ||
url: | ||
url: | ||
description: The URL of the file to download. | ||
example: 'http://example.org/myfile' | ||
example: "http://example.org/myfile" | ||
subdir: | ||
description: Download into subdirectory. | ||
example: 'download_dir' | ||
example: "download_dir" | ||
filename: | ||
description: Determine the filename. | ||
example: 'my_file_name' | ||
example: "my_file_name" | ||
overwrite: | ||
description: Whether to overwrite the file or not. | ||
example: 'false' | ||
example: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.