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

Update error #56

Open
mimaret opened this issue Mar 30, 2022 · 6 comments
Open

Update error #56

mimaret opened this issue Mar 30, 2022 · 6 comments

Comments

@mimaret
Copy link

mimaret commented Mar 30, 2022

Hello,

I use swiss-meteo(V 1.3) in home assistant. It was working very well. Since a few days, I have an error when updating the info. I uninstalled and reinstalled, to no avail.

Thanks in Advance

`Logger: homeassistant.components.sensor
Source: custom_components/meteo-swiss/init.py:77
Integration: Capteur (documentation, issues)
First occurred: 11:40:56 (12 occurrences)
Last logged: 11:41:08
meteo-swiss: Error on device update!

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 737, in async_device_update
await task
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/meteo-swiss/sensor.py", line 105, in update
self._data = self._client.get_data()
File "/config/custom_components/meteo-swiss/init.py", line 77, in get_data
return self._client.get_data()
File "/usr/local/lib/python3.9/site-packages/hamsclient/client.py", line 32, in get_data
return {"name": self._name,"forecast": self._forecast, "condition":self._condition}
AttributeError: 'meteoSwissClient' object has no attribute '_forecast'`

@DreadN
Copy link

DreadN commented Mar 30, 2022

Hi, Could it be the same problem as #54 and #53

In #54 a good workaround has been provided by @scottgerring tried it on HA Core in Docker container and it worked.

@mimaret
Copy link
Author

mimaret commented Mar 31, 2022

The problem is solved !

#54 gave me another error and I upgraded to 1.4.

Thanks again

@DreadN
Copy link

DreadN commented Mar 31, 2022

Is 1.4 already available in HACS?

@DreadN
Copy link

DreadN commented Apr 1, 2022

Found it!

@CamFlyerCH
Copy link

Found it!

Hmmm, would you please enliight us whete and how?

@scottgerring
Copy link
Contributor

Found it!

Hmmm, would you please enliight us whete and how?

There are instructions in the big bolded section I posted in #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants