laurent-martin / ets-to-homeassistant

script to convert ETS5 project file to a YAML configuration file suitable for Home Assistant
Apache License 2.0
52 stars 12 forks source link

Fix syntax error. #10

Closed herm closed 1 year ago

herm commented 1 year ago

d340a7dbd63451f0e71c69457f5adc280c985177 fails to start with this error:

./ets_to_hass.rb:151: syntax error, unexpected ','
          type:,
./ets_to_hass.rb:152: syntax error, unexpected ',', expecting `end'
....map { |g| g['RefId'].freeze },
./ets_to_hass.rb:154: syntax error, unexpected '}', expecting `end'
        }.merge(info)
./ets_to_hass.rb:244: syntax error, unexpected `end', expecting end-of-input

Changing line 151 from type: , to type: type, fixes this error.