aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
727 stars 128 forks source link

deployhasp.sh breaks configuration.yaml when the file doesn't end with a new line #131

Closed mpoli closed 3 years ago

mpoli commented 3 years ago

When the last character of configuration.yaml isn' t a new line (line feed), it will append "recorder:" to the last line in the configuraion.yaml file, and HA will accuse that configuration.yaml is invalid because of some block error, mine was as follows:

Error loading /config/configuration.yaml: while parsing a block mapping in "/config/configuration.yaml", line 188, column 11 expected , but found '' in "/config/configuration.yaml", line 188, column 20

Quick fix: hit an enter before the " recorder:" and put it alone in a new line.

aderusha commented 3 years ago

Fix is in dev, but it's probably better if I pushed that part into master while I work on the next release. I've gone and done that, thanks for the heads up!

mpoli commented 3 years ago

@aderusha Congrats on the excellent project!