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

Return 0 for failed Foscam streams #22651

Merged
merged 8 commits into from Apr 2, 2019
Merged

Conversation

chelming
Copy link
Contributor

@chelming chelming commented Apr 2, 2019

Description:

An error was being thrown if a camera was defined in the config but unreachable. This prevents the error from being thrown and returns 0 for SUPPORT_STREAM and stream_source.

Related issue (if applicable): fixes #22568

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@ghost ghost added the in progress label Apr 2, 2019
@chelming chelming changed the title Foscam Return 0 for failed Foscam streams Apr 2, 2019
homeassistant/components/foscam/camera.py Outdated Show resolved Hide resolved
homeassistant/components/foscam/camera.py Outdated Show resolved Hide resolved
@balloob balloob added this to the 0.91.0 milestone Apr 2, 2019
@balloob balloob merged commit 429e2cd into home-assistant:dev Apr 2, 2019
@ghost ghost removed the in progress label Apr 2, 2019
balloob pushed a commit that referenced this pull request Apr 2, 2019
* Update Foscam to support stream source

* Removing spaces and tabs

* Changing to Python3-style string formatting

* Adding '_media_port' to hopefully cover other models

* changing logic for success and return none
@balloob balloob mentioned this pull request Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants