Fail to use influxdb integration since recently

I have used the influxdb integration for some time now but recently (maybe after installing HA 2026.6) HA fails to connect to my influxdb database which runs on a NAS.
I deleted my influxdb integration and tried to create a new one like this:


It fails. In the logs I can this this information. The log is from the time when I tried to create the integration like above.

* Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='localhost', port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by NewConnectionError("HTTPConnection(host='localhost', port=8086): Failed to establish a new connection: [Errno 111] Connection refused"))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
* InfluxDB database is not accessible due to '404: 404 page not found '. Please check that the database, username and password are correct and that the specified user has the correct permissions set.

To me it looks like the integration tries to connect to localhost even if I used the ip address to my NAS.
Is this a bug or do I do something wrong?

https://www.home-assistant.io/integrations/?search=influx

Thanks! I should have looked at Issue · GitHub