Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect yaml parsing with Home Assistant VSCode extension #376

Closed
tomlut opened this issue Jan 17, 2022 · 5 comments
Closed

Incorrect yaml parsing with Home Assistant VSCode extension #376

tomlut opened this issue Jan 17, 2022 · 5 comments

Comments

@tomlut
Copy link

tomlut commented Jan 17, 2022

Problem/Motivation

Version 4.1.0 seems to have something wrong with the Home Assistant YAML parser. Getting a lot off errors like this:

Untitled

The previous version and desktop version (via SAMBA share) do not have this issue.

Seems to only occur for !include files that contain lists, files that contain dictionaries are ok.

 Add-on version: 4.1.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.1  (amd64 / generic-x86-64)
 Home Assistant Core: 2021.12.9
 Home Assistant Supervisor: 2021.12.2

Expected behavior

YAML to be parsed correctly

Actual behavior

False positive errors.

Steps to reproduce

Open an !include file that contains a list with the addon.

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

@tomlut
Copy link
Author

tomlut commented Jan 17, 2022

Actually, some lists are ok:

Untitled

!include files with the issue I've found:

binary_sensors.yaml
lights.yaml
sensors.yaml
switches.yaml
zones.yaml

Files that are ok:

automations.yaml
cameras.yaml
media_players.yaml
notifications.yaml
rest_sensors.yaml
scenes.yaml
And all files that contain dictionaries.

@Hamudulu
Copy link

Same here after update Studio Code to 4.1...

@gabrieledaltoe
Copy link

I also confirm with my installation:

binary_sensors.yaml
lights.yaml
sensors.yaml
switches.yaml
zones.yaml

With Studio Code Server 4.1

@stefanroelofs
Copy link

Same here.

image

@frenck
Copy link
Member

frenck commented Jan 17, 2022

This is not an add-on issue, but an issue with the VSCode extension.
Upstream issue here: keesschollaart81/vscode-home-assistant#1866

@frenck frenck closed this as completed Jan 17, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants