8000 Citybikes: Allow None as result for empty slots by janLo · Pull Request #8528 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Citybikes: Allow None as result for empty slots 8000 #8528

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
Jul 17, 2017

Conversation

janLo
Copy link
Contributor
@janLo janLo commented Jul 17, 2017

The citibykes API returns "null" as value for empty_slots on some
stations (see #8527). This causes the component to not process the data.

This is fixed by accepting None as valid data. The row in the frontend
is left empty if "null" was returned by the service.

fixes #8527

Description:

Related issue (if applicable): fixes #8527

Example entry for configuration.yaml (if applicable):

sensors:
  - platform: citybikes
    name: Bikes Test
    latitude: 51.0488256
    longitude: 13.7226159
    radius: 300

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

The citibykes API returns "null" as value for empty_slots on some
stations (see home-assistant#8527). This causes the component to not process the data.

This is fixed by accepting None as valid data. The row in the frontend
is left empty if "null" was returned by the service.

fixes home-assistant#8527
Copy link
Member
@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🐦

@fabaff fabaff merged commit fde4a7d into home-assistant:dev Jul 17, 2017
@balloob balloob mentioned this pull request Jul 29, 2017
dethpickle pushed a commit to dethpickle/home-assistant that referenced this pull request Aug 18, 2017
The citibykes API returns "null" as value for empty_slots on some
stations (see home-assistant#8527). This causes the component to not process the data.

This is fixed by accepting None as valid data. The row in the frontend
is left empty if "null" was returned by the service.

fixes home-assistant#8527
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
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.

Citybike component can't handle responses from sz-bike-germany-dresden
3 participants
0