--- # 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