Skip to content

Camera push webhook#18346

Closed
dgomes wants to merge 39 commits intohome-assistant:devfrom
dgomes:camera_push_webhook
Closed

Camera push webhook#18346
dgomes wants to merge 39 commits intohome-assistant:devfrom
dgomes:camera_push_webhook

Conversation

@dgomes
Copy link
Copy Markdown
Contributor

@dgomes dgomes commented Nov 9, 2018

Description:

This moves from the temporary webhook solution to the webhook solution in #16817

Related issue (if applicable): fixes #16817

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#7451

Example entry for configuration.yaml (if applicable):

camera:
  - platform: push
    name: cam1
    timeout: 10
    cache: 5
    webhook_id: my_custom_webhook_id 

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 user exposed functionality or configuration variables are added/changed:

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

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

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

hunterjm and others added 15 commits November 11, 2018 17:44
* Remove notify schema from hangouts platform

* Notify platforms shouldn't overwrite the notify component service
  schema. That has no effect.

* Fix hangouts service data key value
…nt#17166)

* Fix and improvment of Swiss Hydrological Data component

* changed component to get data from a REST API rather than from crawling the website

* fixed several issues and lint errors

* Fix and improvment of Swiss Hydrological Data component

* Minor changes

- Simplify the sensor configuration (expose value as attributes rather than sensor)
- Make the setup fail if station is not available
- Add unique ID
- Prepare for config flow
@dgomes dgomes requested review from a team, Danielhiversen, cdce8p and fabaff as code owners November 11, 2018 17:10
hass.http.register_view(CameraPushReceiver(hass,
config[CONF_IMAGE_FIELD]))
try:
hass.components.webhook.async_register(DOMAIN, 'push', webhook_id, handle_webhook)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

line too long (90 > 79 characters)

@dgomes dgomes closed this Nov 11, 2018
@ghost ghost removed the in progress label Nov 11, 2018
@dgomes dgomes deleted the camera_push_webhook branch November 11, 2018 17:53
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.