Skip to content

Add mobile_app notify platform#22580

Merged
hunterjm merged 13 commits into
devfrom
mobile_app-notify
Apr 3, 2019
Merged

Add mobile_app notify platform#22580
hunterjm merged 13 commits into
devfrom
mobile_app-notify

Conversation

@robbiet480
Copy link
Copy Markdown
Contributor

@robbiet480 robbiet480 commented Mar 31, 2019

Description:

Adds a generic mobile_app notification platform. push_url and push_token must be set in the app data dictionary to enable the platform for a registration.

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.

Comment thread homeassistant/components/mobile_app/__init__.py Outdated
Comment thread homeassistant/components/mobile_app/__init__.py Outdated
Comment thread homeassistant/components/mobile_app/notify.py
Comment thread homeassistant/components/mobile_app/notify.py Outdated
Comment thread homeassistant/components/mobile_app/notify.py Outdated
Comment thread homeassistant/components/mobile_app/notify.py Outdated
Comment thread homeassistant/components/mobile_app/notify.py Outdated
Comment thread homeassistant/components/mobile_app/notify.py
Comment thread homeassistant/components/mobile_app/notify.py Outdated
@robbiet480
Copy link
Copy Markdown
Contributor Author

Tests failing due to flaky test_initialize_from_database_with_maxage test.

Comment thread homeassistant/components/mobile_app/notify.py
Comment thread homeassistant/components/mobile_app/notify.py
@robbiet480 robbiet480 added this to the 0.91.0 milestone Apr 3, 2019
Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

Ok to merge when test added

@robbiet480
Copy link
Copy Markdown
Contributor Author

Test added

Comment thread tests/components/mobile_app/test_notify.py Outdated
Comment thread tests/components/mobile_app/test_notify.py Outdated
@ghost ghost assigned awarecan Apr 3, 2019
@hunterjm hunterjm merged commit b797b15 into dev Apr 3, 2019
@ghost ghost removed the in progress label Apr 3, 2019
@delete-merged-branch delete-merged-branch Bot deleted the mobile_app-notify branch April 3, 2019 12:21
balloob pushed a commit that referenced this pull request Apr 3, 2019
* Add mobile_app notify platform

* Requested changes

* Fix incorrect param for status code

* Move push_registrations to notify platform file

* Trim down registration information sent in push

* quotes

* Use async version of load_platform

* Add warning for duplicate device names

* Switch to async_get_service

* add mobile_app.notify test

* Update tests/components/mobile_app/test_notify.py

* Update tests/components/mobile_app/test_notify.py
@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.

6 participants