-
Notifications
You must be signed in to change notification settings - Fork 2
Fix exception accessing data.temp #1
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
Fix exception accessing data.temp #1
Conversation
|
Great finding and thanks for putting together this fix! While it's annoying their api is inconsistent, this seems a very pragmatic workaround. I'll test it out myself and merge it asap. Thanks for the other cleanups too - I originally assumed this fork would be just for submitting pr's upstream but that seems a long way in the past now... |
|
|
|
Hi @srescio yeah I'm changing my ha plugin to use |
…stant dep in uhoo-homeassistant component
|
@andrewleech finally had it work in running core fetching data, |
|
Hi @srescio thanks again for this and sorry it's taken me a while to get to it. I finally got my local install set up to test this and it does indeed fix the data fetching error (my uhoo had stopped receiving data a few weeks ago too). I'm thinking I might rename this package to just |
related to andrewleech/uhoo-homeassistant#5
uhoo API has probably some kind of cache related to the
userSettingsobject that may get cleared after some time,reason why some people have been experiencing the issue and some not,
in my case the object was there but empty, after going into my uhoo mobile app and changing the temperature unit in settings the next calls contained again the temp property, same for all the other units
while this action makes the integration work again, we don't know when/why the property may be cleared again,
the temp unit is not reported anywhere else, but among other things added there is a "treshold" property, which contains the following:
while
minandmaxchange based on the safety treshold chosen in the app for a given value,aMaxandaMinare fixed and represent the overall range, values change only based on the unit,for celsius it returns the following:
therefore the
threshold.temp.aMaxcan be used to reasonably infer the selected unit for temperature as fallback when the explicit value is missing inuserSettings