vscode-home-assistant icon indicating copy to clipboard operation
vscode-home-assistant copied to clipboard

Incorrect type. Expected "array".yaml-schema: http://schemas.home-assistant.io/integration-template

Open mbo18 opened this issue 1 year ago • 2 comments

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.

mbo18 avatar Jul 19 '23 20:07 mbo18

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.

linucks avatar Oct 02 '23 10:10 linucks

Same problem here. Schemas are not working for automation.yaml too.

dutchsnowden avatar Jan 29 '24 06:01 dutchsnowden