Comments (6)
VSCode version: 1.76.0
ESPhome plugin version: v2022.11.0
from esphome-vscode.
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.
Is anybody able to reproduce this?
I cannot:
from esphome-vscode.
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
`
- switch.turn_on: gpio2
- delayed_on: 30ms
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.
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](https://private-user-images.githubusercontent.com/28444/292029472-0cf83031-f315-4a10-bfcc-92802638cf18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDcxNzYxMjQsIm5iZiI6MTcwNzE3NTgyNCwicGF0aCI6Ii8yODQ0NC8yOTIwMjk0NzItMGNmODMwMzEtZjMxNS00YTEwLWJmY2MtOTI4MDI2MzhjZjE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjA1VDIzMzAyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjMmI3ZGM5YWM3MTMzMzU1OTJkMGY3YTVmYjczMWNmNDc2NWUzMzEyZGQ2NDRlMDRhYmUzMDkwMmI3M2U2YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.D9yvePYVwHzcNRMyBDFfPOytPfCgdfDfR7D64gR8L7w)
from esphome-vscode.
Do you have the redhat yaml extension installed? Try disabling it for the workspace
from esphome-vscode.
Related Issues (20)
- $ Not Allowed in Node, But Using Substitution HOT 1
- Unknown tag !lambda HOT 2
- Extension doesn't work on VSCode 1.68 HOT 3
- !secret syntactic error HOT 4
- component.update action not suggested when there are polling components in the sketch
- pzemac.reset_energy action not suggested when pzemac is in use
- Editor Pop-up placement HOT 2
- bug: dashboard mode sends wrong path secrets.yaml file HOT 16
- New Climate 'Preset' options HOT 3
- Wrong indent in VSCode when pasting code snippets
- How to configure it when running ESPHome locally? HOT 2
- Unexpected path traverse error when autocompleting in lambda HOT 1
- Provide commands HOT 1
- Catch too big display HOT 1
- Schema generation error HOT 5
- hidden files arent picked up HOT 5
- sgp4x platform not recognized HOT 3
- Improve documentation to indicate importance of setting file type HOT 2
- Errors not showing up as squiggles anymore. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-vscode.