Commit graph

64 commits

Author SHA1 Message Date
Joakim Sørensen
7042a02d72
Add remote alias to connection info response () 2023-08-31 10:43:32 -04:00
Erik Montnemery
91faa53843
Don't allow hass.config.config_dir to be None () 2023-08-16 13:00:14 +02:00
Jan Bouwhuis
0614702f98
Alexa typing part 5 (smart_home) ()
* smart_home

* Fix test_disabled

* Remove unused type ignore
2023-08-08 11:48:50 +02:00
Joakim Sørensen
db01aecb02
Add contents to connection_info handler in cloud client () 2023-06-27 17:45:41 +02:00
Erik Montnemery
f3fc741a71
Bump hass-nabucassa to 0.69.0 () 2023-06-27 15:29:30 +02:00
Erik Montnemery
b600c2cd85
Add cloud_connected method to CloudClient ()
* Add cloud_connected method to CloudClient

* Add cloud_disconnected method

* Update client.py
2023-06-20 17:15:13 +02:00
Erik Montnemery
2bc5198390
Bump hass-nabucassa to 0.68.0 ()
* Bump hass-nabucassa to 0.68.0

* Add implementation of new abstract methods
2023-06-20 13:52:21 +02:00
Erik Montnemery
937ebb374c
Enable strict type checks of cloud ()
* Enable strict type checks of cloud

* Fix circular import

* Address review comments

* Apply suggestions from code review
2023-05-24 11:46:11 +02:00
epenet
628236209b
Fix lingering timer in cloud () 2023-05-04 19:10:44 +02:00
Erik Montnemery
78da1168db
Adjust type hints in CloudClient () 2023-05-04 12:26:52 +02:00
Erik Montnemery
ed737f306b
Remove cloud assist pipeline setup from cloud client () 2023-04-26 06:53:58 -04:00
Erik Montnemery
57a59d808b
Automaticially create an assist pipeline using cloud stt + tts ()
* Automaticially create an assist pipeline using cloud stt + tts

* Return the id of the cloud enabled pipeline

* Wait for platforms to load

* Fix typing

* Fix startup race

* Update tests

* Create a cloud pipeline only when logging in

* Fix tests

* Tweak _async_resolve_default_pipeline_settings

* Improve assist_pipeline test coverage

* Improve cloud test coverage
2023-04-25 20:40:01 -05:00
Joakim Sørensen
d907bd2ca3
Add connected relayer region to system health () 2023-03-28 17:09:59 +02:00
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
416a5cb279
Import constants from component root () 2022-09-14 00:12:54 +02:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud () 2022-06-23 11:41:34 +02:00
Paulus Schoutsen
a57136783d
Fix race causing google config pre-init access () 2022-04-28 23:45:57 -07:00
Erik Montnemery
18ea43b927
Prevent race when loading cloud config ()
* Prevent race when loading cloud config

* Tweak
2022-01-26 10:59:36 +01:00
Erik Montnemery
4bcf71b1f3
Prevent race when loading cloud config () 2022-01-19 09:57:54 -08:00
Erik Montnemery
fd3b41dbe0
Catch exceptions when trying to enable Alexa () 2022-01-19 09:53:32 -08:00
Erik Montnemery
aa40476b49
Fix comments, improve readability in Cloud () 2022-01-17 14:19:11 +01:00
epenet
44a686931e
Import webhook ()
* Import webhook

* Adjust webhook trigger

* Fix pylint

* Add type hints to async_handle_webhook

* Revert changes to netatmo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 12:31:02 +01: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
03593aa21b
Import persistent notification (part 2) () 2022-01-13 08:42:50 +01:00
Paulus Schoutsen
1ea3a17d89
Allow sending webhooks via WS connection () 2022-01-07 10:41:36 -08:00
Erik Montnemery
dec54488e8
Enable basic type checking for cloud ()
* Enable basic type checking for cloud

* Update mypy settings

* Address review comment

* Fix rebase mistakes

* Correct decorator order
2021-11-17 09:07:01 +01:00
Ville Skyttä
73d192b3f3
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* () 2021-10-22 19:43:40 +02: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
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
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes () 2021-07-19 10:46:09 +02:00
Shay Levy
cf228e3fe5
Add constructor return type in integrations A-D () 2021-05-20 18:51:39 +03:00
Paulus Schoutsen
ba93a033a5
Cloud to set up Alexa conditionally () 2021-04-13 09:31:41 -07:00
Franck Nijhof
855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 () 2021-03-29 13:24:36 -10: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
Marc Mueller
7c0734bdd5
Update typing 05 () 2021-03-17 23:43:55 +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
Paulus Schoutsen
15da7b3ca6
Cloud: Recover when internet is not available yet () 2020-11-06 12:12:18 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
Paulus Schoutsen
3ee3ae7633
Fix cloudhooks coming in for non existing webhooks ()
* Fix cloudhooks coming in for non existing webhooks

* Fix tests"
2020-06-15 16:30:40 -07:00
springstan
8d61893c39
Use HTTP_OK constant ()
* Use http ok constant

* Remove incorrect use

* Run isort

* Fix pylint by adding missing imports

* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
Paulus Schoutsen
8ceef72853
Google Assistant: Track if request is local ()
* Track if request is local

* Cancel early if 2FA disabled

* Allow disabling 2FA for ack

* Do not mark devices with 2FA as reachable

* Add request source to GA events
2020-01-28 10:54:39 -08:00
Bas Nijholt
fbd4cf1089 use isort to sort imports according to PEP8 for cloud () 2019-12-08 22:31:12 +05:30
Joakim Plate
2569c4ae37 Google assistant storage of connected agents ()
* Make async_report_state take agent_user_id

* Attempt to store synced agents

* Drop now not needed initialization

* Make sure cloud uses the all sync on changed preferences

* Some more places to use all version of sync

* Get the agent_user_id from the request context if available

* Minor cleanup

* Remove the old fixed agent_user_id for cloud

Instead pass along cloud_user where appropriate.

* async_delay_save takes a function

* Adjust test for delayed store

* Remove unused save function

* Add login check.
2019-12-02 22:05:59 -08:00
Paulus Schoutsen
b847d55077 Only create cloud user if cloud in use ()
* Only create cloud user if cloud in use

* Pass context to alexa

* Update requirements

* Fix handing & design pattern for 0.30

* fix tests

* Fix lint & tests

* rename internal user
2019-11-28 14:23:59 +01:00
Paulus Schoutsen
e866d769e8
Google Assistant Local SDK ()
* Local Google

* Fix test

* Fix tests
2019-10-13 14:16:27 -07:00
Paulus Schoutsen
f184bf4d85 Add Google Report State ()
* Add Google Report State

* UPDATE codeowners"

* Add config option for dev mode

* update library

* lint

* Bug fixes
2019-10-03 13:02:38 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f5f86993f1
Improve Alexa error handling () 2019-06-24 22:04:31 -07:00
Paulus Schoutsen
78b7ed0ebe Clean up Google Config ()
* Clean up Google Config

* Lint

* pylint

* pylint2
2019-06-21 11:17:21 +02:00
Paulus Schoutsen
4e066f4681
Fix sending update when not logged in ()
* Fix sending update when not logged in

* Fix test
2019-06-19 13:58:00 -07:00