Commit Graph

61 Commits (443147e132fd3714396aaf651a80840a0d2cfd1b)

Author SHA1 Message Date
Paulus Schoutsen af8ef634c1
Fix double subscriptions for local push notifications () 2021-06-20 14:53:21 -07:00
Joakim Sørensen 3e7729faf2
Handle blank string in location name for mobile app () 2021-05-27 06:04:05 +02:00
Paulus Schoutsen 1e10772497
Add support for local push channels to mobile_app () 2021-05-17 11:06:42 -07:00
Franck Nijhof c68b259bd3
Cleanup of unused connection_class logic ()
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Marc Mueller 8e2b5b36b5
Bump pyupgrade to 2.12.0 () 2021-04-09 09:58:27 -07:00
Paulus Schoutsen 00bd591238
Verify get_zones webhook works () 2021-03-11 01:08:12 +01:00
Erik Montnemery 84226da404
Update tests i-o to use async_get() instead of async_get_registry() () 2021-03-09 14:32:08 +01:00
Erik Montnemery 26e7916367
Migrate mobile_app to RestoreEntity () 2021-02-11 20:18:03 +01:00
Franck Nijhof 65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen 7d23ff6511
Add device action to mobile app to notify () 2020-12-01 18:14:01 +01:00
Philip Allgaier dde6305549
Cleanup unused loggers (components N-Z + tests) () 2020-10-16 21:24:08 -05:00
Paulus Schoutsen 57996e1942
Improve mobile app template handling ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-10-12 17:26:54 +02:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Ville Skyttä 6ae9399237
Upgrade isort to 5.4.2 () 2020-08-29 08:23:55 +02:00
Daniel Shokouhi d587f134ca
Reload mobile app notify service upon device name change, add device name to all webhook logs ()
* Add device name to all webhook logs to help with multiple devices

* Reload notifications when we update the registration, update from rebase

* Make hassfest happy

* Adjust caplog test to accomodate log message change

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 15:13:43 -05:00
J. Nick Koston 92c06f0818
Ensure mobile_app notifications get re-registered after adding,removing,adding () 2020-08-28 14:08:09 -05:00
J. Nick Koston 85869be2d8
Unregister mobile_app notification services when a device is removed () 2020-08-28 12:37:19 -05:00
J. Nick Koston 3377f6b12a
Register mobile_app notification services when a new device is added ()
* Register mobile_app notification services when a new device is added

* targets and base service use their own patterns to generate the name
2020-08-28 12:18:02 -05:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Paulus Schoutsen 52729e9dc8
Add scan_tag webhook to mobile app () 2020-08-10 17:54:46 +02:00
Paulus Schoutsen 8ed1a29c82
Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
Zac West 8541ae0360
mobile_app: Camera Stream Webhook () 2020-06-15 19:09:53 -07:00
Franck Nijhof 2abd3844cf
Fix mobile_app missing state in sensor registration () 2020-06-09 11:06:52 -07:00
Franck Nijhof 85ba29012f
Fix mobile_app sensor re-registration handling () 2020-06-08 21:11:37 +02:00
Franck Nijhof b3cbce3566
Fix mobile_app registering/update sensor values with an unknown state () 2020-06-08 10:07:05 -07:00
Paulus Schoutsen 68b077ffaa
Add partial mobile app sensor validation () 2020-06-04 10:13:01 +02:00
Paulus Schoutsen 276f3afb00
Do async_setup_platform in background ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Franck Nijhof d7e9959442
String formatting improvements for tests (2) () 2020-04-05 00:33:07 +02:00
Franck Nijhof 906385172a
String formatting improvements for tests () 2020-04-05 00:26:08 +02:00
Paulus Schoutsen 5c1dc60505 Fix mobile app test 2020-03-18 22:13:37 -07:00
Paulus Schoutsen abd1909e2b
Make zone dependency of device tracker an after dep ()
* Make zone dependency of device tracker an after dep

* Fix test
2020-03-17 06:59:39 -04:00
springstan f1a0ca7cd3
Add and use percentage constant ()
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Daniel Shokouhi 43256ebd83
Add device name to sensor name for mobile_app ()
* Add device name to sensor name

* Update test to include device name
2020-02-12 11:40:39 -08:00
Robbie Trencheny 0700d38d1f
Add new webhook action to allow enabling encryption in an exis… ()
* Add new webhook action to allow enabling encryption in an existing registration

* Harden tests

* Make requested fixes
2020-02-11 23:56:22 -08:00
Paulus Schoutsen e5365779fe
Allow unloading mobile app () 2020-01-22 09:57:47 -08:00
Paulus Schoutsen 95cd0a2c68
Mobile App add device tracker to person registering app () 2020-01-04 23:15:50 +01:00
Paulus Schoutsen 2f362b44c4 Allow adding unique device ID to mobile app registration ()
* Allow adding unique device ID to mobile app registration

* Remove unknown data

* Better fix
2020-01-04 13:45:03 +01:00
Bas Nijholt abfcc18004 Sort imports according to PEP8 for mobile_app () 2019-12-09 13:22:42 +01:00
Paulus Schoutsen f6780c1fa2
Allow negative altitude in location updates () 2019-12-03 22:39:12 -08:00
Paulus Schoutsen 4cfd24a03a
Fix mobile app device identifiers () 2019-11-27 20:27:22 -08:00
Ville Skyttä d88ca0f5cb Lint exclusions ()
* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen 6795db9bd6 Mobile app device tracker to restore state () 2019-06-03 10:30:56 +02:00
Paulus Schoutsen b4374c8c4c Mobile app to use device tracker config entry ()
* Mobile app to use device tracker config entry

* Lint

* Re-use device_info

* Lint
2019-05-31 23:01:45 -07:00
Penny Wood e850ccb82c Fixed test () 2019-04-24 09:55:37 -07:00
Robbie Trencheny 7303d56a55
Mobile App: Remove component loading support ()
Loading a component defined in a registration didn't actually work and was undocumented, so let's just remove it instead of fixing .

## Checklist:
  - [X] The code change is tested and works locally.
  - [X] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [X] There is no commented out code in this PR.
2019-04-11 19:06:36 -07:00
Paulus Schoutsen cac00f5b26 Test for circular dependencies using manifests ()
* Integration dependencies

* Lint

* Lint

* Fix one test

* Lint

* Fix load custom component integration

Fix async issue
Add circular dependency detection in manifest validation

* Fix test

* Address review comment

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-04-09 09:30:32 -07:00
Robbie Trencheny 137d80452d
Minor sensor fixes ()
* Minor sensor fixes

* Fix tests
2019-04-08 01:13:26 -07:00
Robbie Trencheny 3ce6be6297 Add a new mobile_app webhook command to get config ()
* Add a new mobile_app webhook command to get config

* Limit fields returned
2019-04-07 01:16:54 -07:00
Robbie Trencheny b797b1513a Add mobile_app notify platform ()
* 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
2019-04-03 08:21:25 -04:00