Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to "www.wifi.ecowater.com" #16

Closed
figorr opened this issue Jul 2, 2022 · 1 comment
Closed

Error connecting to "www.wifi.ecowater.com" #16

figorr opened this issue Jul 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@figorr
Copy link
Contributor

figorr commented Jul 2, 2022

Hi, suddenly the integration stopped working and it it is showing the following two log errors:

`Logger: custom_components.ecowater_softener.sensor
Source: custom_components/ecowater_softener/sensor.py:111
Integration: Ecowater Softener (documentation, issues)
First occurred: 10:44:15 (1 occurrences)
Last logged: 10:44:15

Error: local variable 'website_data' referenced before assignment
Traceback (most recent call last):
File "/config/custom_components/ecowater_softener/sensor.py", line 111, in async_update
data_json = await self.hass.async_add_executor_job(lambda: ecowaterDevice._get())
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ecowater_softener/sensor.py", line 111, in
data_json = await self.hass.async_add_executor_job(lambda: ecowaterDevice._get())
File "/usr/local/lib/python3.9/site-packages/ecowater_softener/ecowater.py", line 43, in _get
tokens = request_validation_re.findall(website_data.text)
UnboundLocalError: local variable 'website_data' referenced before assignment`

`Logger: root
Source: /usr/local/lib/python3.9/site-packages/ecowater_softener/ecowater.py:41
First occurred: 10:44:15 (1 occurrences)
Last logged: 10:44:15

Error connecting to "www.wifi.ecowater.com": HTTPSConnectionPool(host='www.wifi.ecowater.com', port=443): Max retries exceeded with url: /Site/Login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc5020b64f0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))`

The server seems to have changed the https address for the loggin...

The address www.wifi.ecowater.com it is not available anymore.

The new available address is wifi.ecowater.com, so without www.

Is there any easy way to update the new loggin address or a new integration update will be necessary?

Thanks in advance.

@barleybobs
Copy link
Owner

barleybobs commented Jul 2, 2022

Thanks for pointing this issue out. It should be fixed in v2.0.0. To fix all you should need to do is update the integration through HACS and potentially restart homeassistant. If this does not work, feel free to reopen the issue.

Thanks 👍

@barleybobs barleybobs self-assigned this Jul 2, 2022
@barleybobs barleybobs added the bug Something isn't working label Jul 2, 2022
@barleybobs barleybobs pinned this issue Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants