Validate Home Assistant Configuration / YAML Lint (push) Failing after 7s
Validate Home Assistant Configuration / Home Assistant Config Check (push) Failing after 23s
Validate Home Assistant Configuration / Validate Entity IDs (push) Failing after 1m12s
Validate Home Assistant Configuration / Validate Device IDs (push) Failing after 17s
Validate Home Assistant Configuration / YAML Lint (pull_request) Failing after 8s
Validate Home Assistant Configuration / Home Assistant Config Check (pull_request) Failing after 21s
Validate Home Assistant Configuration / Validate Entity IDs (pull_request) Failing after 17s
Validate Home Assistant Configuration / Validate Device IDs (pull_request) Failing after 17s
52 lines
1.0 KiB
Plaintext
52 lines
1.0 KiB
Plaintext
---
|
|
# yamllint configuration for Home Assistant YAML files
|
|
extends: default
|
|
|
|
rules:
|
|
line-length:
|
|
max: 200
|
|
level: warning
|
|
|
|
# Allow indentation to be flexible for Home Assistant configs
|
|
indentation:
|
|
spaces: 2
|
|
indent-sequences: true
|
|
|
|
# Allow comments at various positions
|
|
comments:
|
|
min-spaces-from-content: 1
|
|
|
|
# Allow empty values (common in HA configs)
|
|
empty-values:
|
|
forbid-in-block-mappings: false
|
|
forbid-in-flow-mappings: false
|
|
|
|
# Allow duplicate keys in some cases (HA uses this for conditions)
|
|
key-duplicates:
|
|
forbid-duplicated-merge-keys: true
|
|
|
|
# Relax truthy checks for on/off (common in HA)
|
|
truthy:
|
|
allowed-values: ['true', 'false', 'yes', 'no', 'on', 'off']
|
|
|
|
# Allow both flow and block styles
|
|
braces:
|
|
min-spaces-inside: 0
|
|
max-spaces-inside: 1
|
|
|
|
brackets:
|
|
min-spaces-inside: 0
|
|
max-spaces-inside: 1
|
|
|
|
# Allow Jinja2 templates (they use curly braces)
|
|
quoted-strings:
|
|
quote-type: any
|
|
required: false
|
|
|
|
ignore: |
|
|
.venv/
|
|
venv/
|
|
.git/
|
|
__pycache__/
|
|
*.pyc
|