Commit graph

152 commits

Author SHA1 Message Date
Franck Nijhof
bfb47eb212
Final clean up of helpers accessed via hass ()
* Final clean up of helpers accessed via hass

* Fix circular dep

* Fix import
2022-05-17 23:42:37 +03:00
Franck Nijhof
c8f700c803
Clean up accessing dispatcher helpers via hass ()
Clean up accessing ditpatcher helpers via hass
2022-05-17 18:41:36 +02:00
Erik Montnemery
1aaf78ef99
Remove entity category system in favor of hidden_by () 2022-05-02 09:33:16 -07:00
Paulus Schoutsen
2e3e7f1e94
Sync area changes to google ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-27 22:32:13 -07:00
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-09 09:05:54 -10:00
Paulus Schoutsen
130ca2213f
Enforce EntityCategory enum ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 15:04:33 -07:00
Erik Montnemery
ff7d5c92d5
Exclude hidden entities from cloud () 2022-03-23 12:42:45 +01:00
Paulus Schoutsen
aabfa08834
Add if subscription is active to cloud status () 2022-03-17 09:51:07 +01:00
Paulus Schoutsen
d3bb622a3c
Bump hass-nabucasa to 0.53.0 () 2022-02-18 11:53:02 -08:00
Paulus Schoutsen
cd5b69d02e
Add Google local indicator () 2022-02-16 07:54:59 -08:00
Tobias Sauerwein
81ad56b8ad
Add events on cloud connect and disconnect ()
* Add events on cloud connect and disconnect

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Use event capture helper

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Provide listener method instead of public event

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add test for disconnect notification

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use Enum

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add module level api

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Clean up dead code

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Flake8

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-02 18:11:06 +01:00
Paulus Schoutsen
9cbdd36082
Expose if HTTP is configured for SSL () 2022-01-26 09:34:48 +01:00
Erik Montnemery
3575009330
Store remote domain in Cloud preferences () 2022-01-21 09:42:34 -08:00
Erik Montnemery
9718fd2534
Enable Alexa state reporting by default () 2022-01-17 23:01:43 -08:00
Erik Montnemery
e6899416e1
Suppress Alexa state reports when not authorized () 2022-01-17 09:14:26 -08:00
Erik Montnemery
537dfbca18
Rename cloud's AlexaConfig to CloudAlexaConfig ()
* Rename cloud's AlexaConfig to CloudAlexaConfig

* Tweak
2022-01-14 11:09:39 +01:00
Erik Montnemery
be628a7c4d
Keep track of Alexa authorization status () 2022-01-13 09:47:31 -08:00
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() () 2022-01-11 17:33:50 +01:00
Joakim Sørensen
d1bb916070
Add client metadata to cloud register () 2022-01-10 14:49:25 +01:00
Erik Montnemery
0b28881b75
Enable Google Assistant state reporting by default () 2022-01-10 13:18:40 +01:00
Paulus Schoutsen
1ea3a17d89
Allow sending webhooks via WS connection () 2022-01-07 10:41:36 -08:00
Paulus Schoutsen
afa7ca1222
Drop block on local proxies from HA Cloud () 2021-11-14 08:11:12 -08:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 () 2021-11-04 10:07:50 -05:00
Erik Montnemery
a0a8b9db26
Add entity category 'system' ()
* Add entity category 'hidden'

* Update cloud

* Update Google assistant

* Update Alexa

* Fix tests

* Add ENTITY_CATEGORIES constant

* Rename ENTITY_CATEGORY_HIDDEN to ENTITY_CATEGORY_SYSTEM

* Correct import in motioneye
2021-10-28 14:36:41 +02:00
Ville Skyttä
73d192b3f3
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* () 2021-10-22 19:43:40 +02:00
Erik Montnemery
0f2b5ea28e
Don't expose config or diagnostic entities to cloud () 2021-10-15 09:35:32 -07:00
Ville Skyttä
2730a27fd0
Use HTTPStatus instead of HTTP_* constants in various test mocks () 2021-10-01 15:52:45 -07:00
Paulus Schoutsen
e34c985534
Simplify cloud request connection handling ()
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-09-22 07:51:31 -07:00
Erik Montnemery
327bf24940
Prevent 3rd party lib from opening sockets in cloud tests () 2021-09-17 12:50:59 +02:00
Paulus Schoutsen
dec7877671
Handle logout prefs update for Google/Alexa () 2021-09-10 09:08:43 -07:00
Paulus Schoutsen
93083513b4
Bump hass-nabucasa 49 () 2021-09-06 16:05:33 -07:00
Paulus Schoutsen
27e29b714c
Bump cloud to 0.47.1 ()
* Bump cloud to 0.47.0

* Bump reqs

* Bump to 0.47.1

* Do not load hass_nabucasa during http startup

* fix some tests

* Fix test

Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2021-09-01 09:54:54 -07:00
Joakim Sørensen
33fb080c1e
Add remote server to cloud system health ()
* Add sintun server to cloud system health

* Update name

* Adjust test
2021-09-01 13:23:50 +02:00
Paulus Schoutsen
f472219c68
Set up cloud semi-dependencies at start () 2021-06-01 01:35:31 +02:00
Paulus Schoutsen
ba93a033a5
Cloud to set up Alexa conditionally () 2021-04-13 09:31:41 -07:00
Paulus Schoutsen
05aeff5591
Describe Google Assistant events ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-13 09:31:01 -07:00
Bram Kragten
03b7b1305c
Cloud: Expose if google is registered in status + check on login ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-29 19:26:51 +02:00
Franck Nijhof
f0e5e616a7
Fix device discovery of OAuth2 config flows () 2021-03-25 10:35:01 -07:00
Bram Kragten
b1d0b37d2c
Google assistant: disconnect user agent when not found in google () 2021-03-23 15:04:32 -07:00
Paulus Schoutsen
b956a571f4
Fix Cloud Google/Alexa check () 2021-02-17 06:49:53 +01:00
Paulus Schoutsen
82746616fa
Cloud: Add web socket API to pick default TTS language ()
* Allow picking default TTS language

* Fix test

* Fix coroutine function

* Improve test coverage

* Remove stale import

* Clean up hass

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-13 00:05:30 +01:00
Paulus Schoutsen
69b5176730
Make Alexa custom ID unique ()
* Make Alexa custom ID unique

* Lint

* Lint
2021-01-05 17:35:28 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
735607c625
Bump version to 2021.1 () 2020-12-16 23:59:45 +01:00
Klaas Schoute
b358103b58
Update cloud integration to 0.38.0 ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-17 16:31:59 +01:00
Paulus Schoutsen
9f4480a634
Add system health streaming updates () 2020-11-10 22:45:59 +01:00
Paulus Schoutsen
15da7b3ca6
Cloud: Recover when internet is not available yet () 2020-11-06 12:12:18 +01:00
springstan
6a7caad8dc
Use content type json constant () 2020-09-23 20:21:55 +02:00
Paulus Schoutsen
d9f3bdea53 Black 2020-08-28 15:33:08 +00:00
Paulus Schoutsen
5217139e0b
Allow exposing domains in cloud () 2020-08-28 16:49:17 +02:00