nathanmarlor / foxess_modbus

FoxESS inverter integration. Connect directly to your FoxESS inverter (no cloud!) for real-time status and control.
MIT License
113 stars 16 forks source link

Print a proper error if the adapter hostname is invalid #476

Closed canton7 closed 9 months ago

canton7 commented 9 months ago

Previously we concatenated it with the port, then split back out on the first ':'. This caused problems if the user used a hostname of e.g. 'http://foo.bar', as now there were two colons.

Fixes: #464