martinville / solarsynkv2

Addon to integrate your Sunsynk account with home assistant.
MIT License
10 stars 7 forks source link

Invalid syntax in run.sh #12

Closed walterheymans closed 1 month ago

walterheymans commented 1 month ago

After entering all my details in the configuration in Home Assistant, and I start it, the log shows an invalid bash syntax error in run.sh:

/run.sh: line 401: [: ==: unary operator expected

I am using version: 2.1.14 of Solarsynk.

walterheymans commented 1 month ago

Nevermind, I found the issue. It happens when I included https:// in the hostname field in the configuration. Perhaps a error check can be added to give a better message for this? The reason it happened is because I copy and pasted the hostname from my browser and did not look at what I was doing, but and error check should be easy enough.