hassio-addons / addon-vscode

Studio Code Server - Home Assistant Community Add-ons
https://addons.community
MIT License
504 stars 81 forks source link

state-selector is giving a false positive yaml-schema error #886

Open Grumblezz opened 2 weeks ago

Grumblezz commented 2 weeks ago

Problem/Motivation

With the update to 2024.10 the syntax of many things are updated, but the following one seems to be a false positive: image

In my scripts.yaml:

state_test:
  alias: State Test
  sequence: []
  fields:
    entity_state:
      selector:
        state:
          entity_id: update.home_assistant_core_update
      name: Entity State
      default: 'off'
  description: ''

The validation error is showing 2 false errors:

Missing property "action" Property state is not allowed.

When reviewing the https://www.home-assistant.io/docs/blueprint/selectors/#state-selector then it looks OK. And when I create a new script via the UI with the state selector then the errors are also shown in the VSCode addon.

Expected behavior

The current selector example should not show a yaml-schema error.

Actual behavior

The current selector example is showing a yaml-schema error.

Steps to reproduce

Use the example from above to get the same yaml-schema error.

Proposed changes

Please fix the yaml-schema error.

frenck commented 2 weeks ago

@wltng Your situation wasn’t related to this report.

../Frenck

frenck commented 2 weeks ago

@wltng Marked your responses as off-topic; as again, they are not related to this report. Like it or not.