Paulus Schoutsen
9cbdd36082
Expose if HTTP is configured for SSL ( #64940 )
2022-01-26 09:34:48 +01:00
Erik Montnemery
e6899416e1
Suppress Alexa state reports when not authorized ( #64064 )
2022-01-17 09:14:26 -08:00
Erik Montnemery
aa40476b49
Fix comments, improve readability in Cloud ( #64291 )
2022-01-17 14:19:11 +01:00
Erik Montnemery
be628a7c4d
Keep track of Alexa authorization status ( #63979 )
2022-01-13 09:47:31 -08:00
Erik Montnemery
9c9dc4cb8c
Import websocket_api (part 1) ( #63905 )
2022-01-11 18:24:08 +01:00
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() ( #63910 )
2022-01-11 17:33:50 +01:00
Joakim Sørensen
d1bb916070
Add client metadata to cloud register ( #63794 )
2022-01-10 14:49:25 +01:00
Erik Montnemery
dec54488e8
Enable basic type checking for cloud ( #55337 )
...
* 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
Paulus Schoutsen
afa7ca1222
Drop block on local proxies from HA Cloud ( #59334 )
2021-11-14 08:11:12 -08:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 ( #58974 )
2021-11-04 10:07:50 -05:00
Ville Skyttä
73d192b3f3
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* ( #57989 )
2021-10-22 19:43:40 +02:00
Paulus Schoutsen
e34c985534
Simplify cloud request connection handling ( #56243 )
...
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-09-22 07:51:31 -07:00
Paulus Schoutsen
93083513b4
Bump hass-nabucasa 49 ( #55823 )
2021-09-06 16:05:33 -07:00
Bram Kragten
03b7b1305c
Cloud: Expose if google is registered in status + check on login ( #48260 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-29 19:26:51 +02:00
Paulus Schoutsen
82746616fa
Cloud: Add web socket API to pick default TTS language ( #45064 )
...
* 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 ( #44839 )
...
* Make Alexa custom ID unique
* Lint
* Lint
2021-01-05 17:35:28 +01:00
springstan
db582bdc1b
Use http status constants more, add HTTP_ACCEPTED and HTTP_BAD_GATEWAY ( #39993 )
...
* Use http status codes and add HTTP_BAD_GATEWAY constant
* Address review comments:
- using constants in tado integration
- using constant in media_player init.py
* Add and use HTTP_ACCEPTED constant
2020-09-15 20:01:07 +03:00
Paulus Schoutsen
5217139e0b
Allow exposing domains in cloud ( #39216 )
2020-08-28 16:49:17 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
a8e9ccbf1a
Improve cloud error handling ( #36670 )
2020-06-11 22:56:00 -07:00
Paulus Schoutsen
1ac8442c63
Fix Cloud UI bug preventing managing Google 2FA ( #34241 )
...
* Fix Cloud UI bug preventing managing Google 2FA
* Update comment
2020-04-15 08:43:43 -07:00
springstan
4c38e6cfa5
Use HTTP_BAD_REQUEST constant ( #33797 )
2020-04-09 21:43:42 +02:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
springstan
8d61893c39
Use HTTP_OK constant ( #33798 )
...
* 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
8a46d93be4
Upgrade hass_nabucasa to 0.32.2 ( #32522 )
...
* Upgrade hass_nabucasa to 32.1
* Fix tests
* Update hass-nabucasa to 0.32.2
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-03-09 17:42:26 -07:00
Paulus Schoutsen
05374d7c85
Fix google sync ( #30524 )
2020-01-06 22:00:39 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Joakim Plate
2569c4ae37
Google assistant storage of connected agents ( #29158 )
...
* 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 ( #29150 )
...
* 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
Joakim Plate
06231e7ac2
Move request sync logic into GoogleConfig ( #28227 )
...
* Move request sync logic into GoogleConfig
* Return http status code for request_sync same as cloud
* agent_user_id is not optional for async_sync_entities now
* No need in checking parameter here
* Adjust some things for cloud tests
* Adjust some more stuff for cloud tests
* Drop uneccessary else
* Black required change
* Let async_schedule_google_sync take agent_user_id
* Assert return value on api call
* Test old api key method
* Update homeassistant/components/google_assistant/helpers.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
2019-11-26 22:47:13 +01:00
Paulus Schoutsen
bd54ff3c02
Add TT WS API ( #28599 )
...
* Add TT WS API
* Add a test
* Correctly convert TT errrors
2019-11-08 10:06:16 +01:00
bouni
1d8e366278
Move imports in cloud component ( #27881 )
2019-10-18 15:39:37 -07:00
Paulus Schoutsen
f184bf4d85
Add Google Report State ( #27112 )
...
* 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
Franck Nijhof
6a24d893c8
Use literal string interpolation in integrations B-D (f-strings) ( #26378 )
2019-09-03 17:09:59 +02:00
Paulus Schoutsen
0ccffc3e55
Lint
2019-07-31 12:46:17 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
c87d6e4720
Catch uncaught Alexa error ( #24785 )
2019-06-26 20:24:20 -07:00
Paulus Schoutsen
f5f86993f1
Improve Alexa error handling ( #24745 )
2019-06-24 22:04:31 -07:00
Paulus Schoutsen
6d9f1b3fd3
Notify Alexa when exposed entities change ( #24609 )
2019-06-19 10:06:28 +02:00
Paulus Schoutsen
a02b69db38
Cloud: Add Alexa report state ( #24536 )
...
* Cloud: Add Alexa report state
* Lint
* Lint
* Only track state changes when we are logged in
2019-06-17 13:50:01 -07:00
Paulus Schoutsen
6c5124e12a
Cloud: allow managing Alexa entities via UI ( #24522 )
...
* Clean up Alexa config
* Cloud: Manage Alexa entities via UI
* Add tests for new cloud APIs
2019-06-13 11:58:08 -07:00
Paulus Schoutsen
7e2278f1cc
Clean up Alexa smart home code ( #24514 )
...
* Clean up Alexa smart home code
* lint
* Lint
* Lint
2019-06-13 08:43:57 -07:00
Paulus Schoutsen
f77514c6f2
Check cloud trusted proxies ( #24395 )
2019-06-07 23:08:55 -07:00
Paulus Schoutsen
6947f8cb2e
Cloud: Websocket API to manage Google assistant entity config ( #24153 )
...
* Extract exposed devices function
* Add might_2fa info to trait
* Do not filter with should_expose in Google helper func
* Cloud: allow setting if Google entity is exposed
* Allow disabling 2FA via config
* Cloud: allow disabling 2FA
* Lint
* More changes
* Fix typing
2019-05-29 08:39:12 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
0533f56fe3
Ask users for a pin when interacting with locks/garage doors ( #23223 )
...
* Ask users for a pin when interacting with locks/garage doors
* Deprecate allow_unlock option
2019-04-19 14:50:21 -07:00
Joakim Plate
4a2a130bfa
Google assistant skip missing type ( #23174 )
...
* Skip entity if no device type found
* Add test for potentially skipped binary sensors
* Reorg code, add tests to ensure all exposed things have types
* Lint
* Fix tests
* Lint
2019-04-17 22:37:39 -07:00
Pascal Vizeli
073f947ca4
Bump Home Assistant Cloud 0.12 ( #23159 )
...
* Home Assistant Cloud 0.12
* Fix raising error
* Fix requirements
* Fix lint
2019-04-17 06:57:26 -07:00
Paulus Schoutsen
c96804954c
Only allow admins to enable remote connection ( #22609 )
...
* Only allow admins to enable remote connection
* Protect WS API
* Lint
2019-04-01 10:22:51 +02:00
Paulus Schoutsen
dbdf5558e6
Prevent cloud remote UI when using 127.0.0.1 as trusted network ( #22093 )
...
* Prevent cloud remote UI when using trusted networks
* Limit to 127.0.0.1 trusted network
* Update error msg
* Disable ipv6 loopback
2019-03-15 19:26:10 -07:00