vscode-home-assistant
vscode-home-assistant copied to clipboard
Incorrect type. Expected "array".yaml-schema: http://schemas.home-assistant.io/integration-template
Hi, It seems that this extension does not recognize this template schema (which is working fine in HA, no error in logs):
In configuration.yaml:
template: !include templates.yaml
in templates.yaml:
- binary_sensor:
name: ...
unique_id: ...
...
- binary_sensor:
name: ...
unique_id: ...
...
- sensor:
name: ...
unique_id: ...
...
- sensor:
name: ...
unique_id: ...
...
Error is:
Incorrect type. Expected "array".yaml-schema: http://schemas.home-assistant.io/integration-template
Also note that URL http://schemas.home-assistant.io/integration-template is not working.
I'm experiencing the same problem with the Visual Studio Addon (5.11.0) and Home Assistant 2023.9.3.
The configuration.yaml file is fine and runs with no errors in Home Assistant, but if I try and use the VS Code editor I get:
Incorrect type. Expected "object".yaml-schema: http://schemas.home-assistant.io/configuration
The schema url is also incorrect.
Same problem here. Schemas are not working for automation.yaml too.