8000 Fix #863 - Added a check for good pull from OWM and return if the object is None by zmrow · Pull Request #945 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix # 8000 863 - Added a check for good pull from OWM and return if the object is None #945

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

Merged
merged 1 commit into from
Jan 21, 2016

Conversation

zmrow
Copy link
Contributor
@zmrow zmrow commented Jan 21, 2016

If the OWM API returns an empty or None response, we will log the error and return. The sensor will refresh at another time.

Possible future enhancement is to overrule the @Throttle decorator to retry, but probably not necessary at this time. (I couldn't get it to fail unless I deliberately did something dumb)

@zmrow
Copy link
Contributor Author
zmrow commented Jan 21, 2016

Related #863

@balloob
Copy link
Member
balloob commented Jan 21, 2016

🐬

balloob added a commit that referenced this pull request Jan 21, 2016
Fix #863 - Added a check for good pull from OWM and return if the object is None
@balloob balloob merged commit 66d23cd into home-assistant:dev Jan 21, 2016
@fabaff
Copy link
Member
fabaff commented Jan 21, 2016

Thanks @zmrow

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0