I moved my legacy templates to the new format, and according to the documentation, this is correctly, also the configuration check by home assistant seems fine. but vscode throws this error. is this a bug?
- switch: #<- error shows there
- name: "switch name"
...
- sensor: #<- this is fine
- name: "sensor name name"
...