vscode-yaml-sort
                                
                                 vscode-yaml-sort copied to clipboard
                                
                                    vscode-yaml-sort copied to clipboard
                            
                            
                            
                        Add support for Home Assistant schema
Home Assistant uses custom tags. Please support custom tags such as the following:
example_key: !example_custom_tag example value
@anoblet I can add a custom yaml schema with the tags used by Home Assistant. Can you provide a list of all custom tags Home Assistent currently supports? In my research I found these tags:
- !env_var
- !include
- !include_dir_list
- !include_dir_merge_list
- !include_dir_merge_named
- !include_dir_*
I believe these are all of the custom tags that they use:
!env_var
!include
!include_dir_list
!include_dir_named
!include_dir_merge_list
!include_dir_merge_named
- Adds !include_dir_named, removes!include_dir_*
Thank you for your help!
@anoblet I just released version 5.2.0 including the fix. Please check out the version and let me know if this fits your needs. If you miss a custom tag, feel free to contribute to the homeassistant-js-yaml-schema. If you like this extension, I would really appreciate a review on the marketplace. 😊
Forgot to mention: You need to set vscode-yaml-sort.schema to HOMEASSISTANT_SCHEMA to use this feature.
@pascalre I forgot one!
!secret
@anoblet update to version 5.3.1
Thank you!
I tried using the HOMEASSISTANT_SCHEMA today, and realized that it does not format correctly:
type: custom:flex-card
cards:
  - type: custom:generic-card
    class: relative
    cards:
      - !include bathroom/temperature.yaml
    title: Temperature
->
cards:
  - cards:
      - !include 
        class: include
        data: bathroom/temperature.yaml
        name: include
    class: relative
    title: Temperature
    type: custom:generic-card
type: custom:flex-card
- !include bathroom/temperature.yaml should stay on it's own line with no modifications.