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

Catch KeyError if data is not available (fixes #18082) #18089

Merged
merged 1 commit into from
Nov 1, 2018
Merged

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Nov 1, 2018

Description:

The data for the wind direction is not always available.

Related issue (if applicable): fixes #18082

Example entry for configuration.yaml (if applicable):

sensor:
  - platform: openweathermap
    api_key: !secret owm_api
    monitored_conditions:
    - wind_speed
    - wind_bearing

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

@ghost ghost assigned fabaff Nov 1, 2018
@ghost ghost added the in progress label Nov 1, 2018
@fabaff fabaff merged commit a936148 into dev Nov 1, 2018
@ghost ghost removed the in progress label Nov 1, 2018
@fabaff fabaff deleted the owm-wind-bearing branch November 1, 2018 15:32
@balloob balloob mentioned this pull request Nov 9, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openweather map unable to get wind direction / bearing
2 participants