Paulus Schoutsen
c401949af8
Handle error fetching available account link services ( #35485 )
2020-05-11 08:09:44 -04:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen
76f392476b
Use a future for mock coro ( #34989 )
2020-04-30 16:31:00 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 ( #34672 )
2020-04-25 14:32:55 -07:00
Paulus Schoutsen
77443b3d09
Add Home Assistant Started event ( #34657 )
2020-04-24 14:13:39 -07:00
Paulus Schoutsen
d3bbd9ec65
Delay sync for Google and limit updates to relevant info ( #34622 )
2020-04-24 10:49:11 +02: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
9a40d5b7ed
Use HTTP_NOT_FOUND constant ( #33835 )
2020-04-09 00:57:47 +02:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
Paulus Schoutsen
7ae802bb0d
Cloud do checks during setup ( #33507 )
...
* Update cloud to do more tasks during async_setup
* Upgrade hass_nabucasa to 0.33
2020-04-01 15:25:04 -07: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
Franck Nijhof
826433b680
Fix device name Google Assistant when using aliases ( #31416 )
...
* Fix device name Google Assistant when using aliases
* Adjust cloud tests
2020-02-02 14:48:13 -08:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Paulus Schoutsen
c963128306
Upgrade to use new version of HASS-nabucasa ( #30506 )
...
* Upgrade to use new version of HASS-nabucasa
* Update hass-nabucasa to 0.31
2020-01-07 13:25:57 +01:00
Paulus Schoutsen
05374d7c85
Fix google sync ( #30524 )
2020-01-06 22:00:39 +01:00
Paulus Schoutsen
6e909ab3f1
Only return remote UI url if remote UI enabled ( #30453 )
2020-01-04 13:43:59 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
fbd4cf1089
use isort to sort imports according to PEP8 for cloud ( #29626 )
2019-12-08 22:31:12 +05:30
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
ochlocracy
b0925e60d7
Explicitly include "Alexa" Interface in discovery response ( #28218 )
...
* Explicitly include Alexa Interface to discovery response.
* Updated cloud component test to reflect additional Alexa interface.
* Updated test for recently added SeekController.
2019-11-25 23:05:10 -08: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
Paulus Schoutsen
08cc9fd375
Add cloud account linking support ( #28210 )
...
* Add cloud account linking support
* Update account_link.py
2019-10-25 16:04:24 -07:00
Paulus Schoutsen
e866d769e8
Google Assistant Local SDK ( #27428 )
...
* Local Google
* Fix test
* Fix tests
2019-10-13 14:16:27 -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
Bram Kragten
80bc15e24b
Update Alexa discovery description ( #26933 )
...
* Update Alexa discovery description
* Update description
* Fix test
* Filter special chars
2019-09-27 21:51:46 +02:00
Paulus Schoutsen
7b05ede297
Fix Alexa Report State ( #26305 )
...
* Fix Alexa Report State
* Forgot to save a file
2019-08-30 20:34:40 -05:00
Paulus Schoutsen
6f357cb23e
First pass fixing tests that raise exceptions caught by asyncio.gather ( #25860 )
...
* First pass fixing tests that raise exceptions caught by asyncio.gather
* Fix demo test
* lint
2019-08-12 16:42:12 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
8ec75cf883
Verify cloud user exists during boot ( #25119 )
2019-07-13 09:33:31 +02:00
Paulus Schoutsen
3cafc1f2c6
Alexa sync state report ( #24835 )
...
* Do a sync after changing state reporting
* Fix entity config being None
2019-06-28 20:43:57 -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
78b7ed0ebe
Clean up Google Config ( #24663 )
...
* 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 ( #24624 )
...
* Fix sending update when not logged in
* Fix test
2019-06-19 13:58:00 -07:00
Paulus Schoutsen
6d9f1b3fd3
Notify Alexa when exposed entities change ( #24609 )
2019-06-19 10:06:28 +02:00
Paulus Schoutsen
f382be4c15
Cloud: Make sure on_connect forwards platform only once ( #24582 )
...
* Make sure on_connect forwards platform only once
* Make sure right handler
2019-06-18 13:59:40 -07: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
94a2fd542e
Fix aiohttp response serialize ( #23858 )
...
* Fix aiohttp response serialize
* Suport bytes
* Handle None
2019-05-14 11:59:27 +02: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
Pascal Vizeli
b57d809dad
Update hass-nabucasa & fix state ( #22385 )
...
* Update hass-nabucasa & fix state
* Fix lint
2019-03-25 09:43:15 -07:00