frenck / action-addon-linter

🚀 Frenck's GitHub Action for linting Home Assistant Add-ons.
MIT License
9 stars 3 forks source link

YAML Tab Error #43

Closed maxbec closed 3 years ago

maxbec commented 3 years ago

Hey @frenck,

i just started to use your linter and got the following error. I don't know how to get rid of it:

yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "diyhue/config.json", line 2, column 1

I tested it on this file: https://github.com/MaxBec/hassio-diyHue/blob/master/diyhue/config.json

Here is the produced error output: https://github.com/MaxBec/hassio-diyHue/runs/2225768951?check_suite_focus=true

Kind Regards, Max

frenck commented 3 years ago

Yes, that is expected, tabs are problematic in our YAML world :) (yeah even when its JSON, as we just convert that).

In general, everywhere in Home Assistant, don't use tabs 😄