Giter VIP home page Giter VIP logo

Comments (6)

viky2379 avatar viky2379 commented on July 24, 2024 1

Same issue here:
image

VSCode version: 1.76.0
ESPhome plugin version: v2022.11.0

from esphome-vscode.

mikesmitty avatar mikesmitty commented on July 24, 2024 1

If you want to keep the redhat yaml extension enabled you can add it as a custom tag in settings.json:

    "yaml.customTags": [
        "!lambda scalar"
    ]

redhat-developer/vscode-yaml#669 (comment)

from esphome-vscode.

glmnet avatar glmnet commented on July 24, 2024

Is anybody able to reproduce this?
I cannot:

image
image

from esphome-vscode.

vb7445 avatar vb7445 commented on July 24, 2024

Yes I'm getting this lambda unknown tag error in the yaml file in Home Assistant File Editor but not when editing from the ESPHome editor.

this is the code snippet
`binary_sensor:

  • platform: gpio
    id: gpio21
    name: Water Sensor
    pin:
    number: 21
    mode:
    input: True
    pullup: False
    pulldown: True
    filters:
    • delayed_on: 30ms
      on_press:
      then:
      • switch.turn_on: gpio2
        - delay: !lambda "return id(glob_drain_delay) * 60000;"
      • switch.turn_off: gpio2
        `

this is the error message

`unknown tag !<!lambda> (78:64)

75 | ...
76 | ...
77 | ...
78 | ... id(glob_drain_delay) * 60000;"
-----------------------------------------^
79 | ...
80 | ...`

In VSCode I'm getting Unresolved tag: !lambda YAML
However, if using the ESPHome Validator in VSCode with the ESPHome Extension installed I don't get an error.

from esphome-vscode.

beausmith avatar beausmith commented on July 24, 2024

I'm getting same error unknown tag <!lambda>YAML

VSCode version: 1.85.1
VSCode ESPhome extension version: v2023.9.0 - 2023-10-09
ESPhome Home Assistant AddOn version: 2023.11.6

image

from esphome-vscode.

glmnet avatar glmnet commented on July 24, 2024

Do you have the redhat yaml extension installed? Try disabling it for the workspace

from esphome-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.