Erik Montnemery
4802e7f93a
Add debug logs to cloud migration ( #94151 )
2023-06-07 13:16:23 +02:00
Erik Montnemery
33044bc153
Fix migration of Google Assistant cloud settings ( #94148 )
2023-06-07 11:14:51 +02:00
Erik Montnemery
937ebb374c
Enable strict type checks of cloud ( #92576 )
...
* 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
Paulus Schoutsen
19dcc8c88f
Re-run expose entities migration if first time failed ( #92564 )
...
* Re-run expose entities migration if first time failed
* Count number of exposed entities
* Add tests
---------
Co-authored-by: Erik <erik@montnemery.com>
2023-05-05 08:11:09 -04:00
Erik Montnemery
b6664ce367
Improve cloud migration ( #92520 )
...
* Improve cloud migration
* Tweak
* Use entity_ids func
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-05-04 23:10:43 -04:00
Erik Montnemery
e14be8b0ab
Force migration of cloud settings to exposed_entities ( #92499 )
2023-05-04 09:53:28 -04:00
Erik Montnemery
a9d8bc989e
Migrate cloud settings for all Google entities ( #92416 )
2023-05-03 18:56:48 +02:00
Erik Montnemery
31de1b17e8
Allow setting google disable 2fa flag on any entity ( #92403 )
...
* Allow setting google disable 2fa flag on any entity
* Fix test
* Include disable_2fa flag in cloud/google_assistant/entities/get
2023-05-03 09:55:38 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ( #92396 )
...
* Don't use storage collection helper in ExposedEntities
* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
65c9d4a4ae
Avoid exposing unsupported entities to Google Assistant ( #92105 )
...
* Avoid exposing unsupported entities to Google Assistant
* Add Google Assistant specific support sets
* Add test
2023-04-27 10:38:21 +02:00
Erik Montnemery
44c89a6b6c
Refactor handling of exposed entities for cloud Alexa and Google ( #89877 )
...
* Refactor handling of exposed entities for cloud Alexa
* Tweak WS API
* Validate assistant parameter
* Address some review comments
* Refactor handling of exposed entities for cloud Google
* Raise when attempting to expose an unknown entity
* Add tests
* Adjust cloud tests
* Allow getting expose new entities flag
* Test Alexa migration
* Test Google migration
* Add WS command cloud/google_assistant/entities/get
* Fix return value
* Update typing
* Address review comments
* Rename async_get_exposed_entities to async_get_assistant_settings
2023-04-06 13:09:45 -04:00
epenet
b03f4fa1d3
Improve type hints in cloud ( #87263 )
2023-02-03 17:10:25 +01:00
epenet
7871a517a8
Import constants from root ( #78271 )
2022-09-12 18:53:05 +02:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud ( #72806 )
2022-06-23 11:41:34 +02:00
Paulus Schoutsen
fbb08994f4
Only sync when HA is started up as we already sync at startup ( #72940 )
2022-06-02 16:15:04 -07:00
Paulus Schoutsen
d57a650290
Don't trigger entity sync when Google Assistant gets disabled ( #72805 )
2022-06-01 12:12:54 +02:00
Paulus Schoutsen
6d74149f22
Sync entities when enabling/disabling Google Assistant ( #72791 )
2022-05-31 14:58:45 -07:00
Paulus Schoutsen
2e3e7f1e94
Sync area changes to google ( #70936 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-27 22:32:13 -07:00
Erik Montnemery
ff7d5c92d5
Exclude hidden entities from cloud ( #68557 )
2022-03-23 12:42:45 +01:00
Paulus Schoutsen
499081df86
Cloud to avoid setting up Alexa/Google during setup phase ( #66676 )
2022-02-16 12:10:26 -08:00
epenet
3a09090a4b
Drop use of deprecated ENTITY_CATEGORIES ( #64607 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:36:42 +01:00
Erik Montnemery
aa40476b49
Fix comments, improve readability in Cloud ( #64291 )
2022-01-17 14:19:11 +01:00
Loek Sangers
25fe213f22
Enable local fulfillment google assistant ( #63218 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-05 12:09:59 -08:00
Erik Montnemery
a0a8b9db26
Add entity category 'system' ( #58595 )
...
* 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]* ( #57989 )
2021-10-22 19:43:40 +02:00
Marc Mueller
184e0d7fdf
Use assignment expressions 26 ( #58187 )
2021-10-22 11:31:17 +02:00
Erik Montnemery
0f2b5ea28e
Don't expose config or diagnostic entities to cloud ( #57771 )
2021-10-15 09:35:32 -07:00
Paulus Schoutsen
dec7877671
Handle logout prefs update for Google/Alexa ( #56045 )
2021-09-10 09:08:43 -07:00
Paulus Schoutsen
27e29b714c
Bump cloud to 0.47.1 ( #55312 )
...
* 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
Paulus Schoutsen
f472219c68
Set up cloud semi-dependencies at start ( #51313 )
2021-06-01 01:35:31 +02:00
Paulus Schoutsen
05aeff5591
Describe Google Assistant events ( #49141 )
...
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 ( #48260 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-29 19:26:51 +02:00
Bram Kragten
b1d0b37d2c
Google assistant: disconnect user agent when not found in google ( #48233 )
2021-03-23 15:04:32 -07:00
Paulus Schoutsen
b956a571f4
Fix Cloud Google/Alexa check ( #46681 )
2021-02-17 06:49:53 +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
J. Nick Koston
da2f9db62e
Fix async functions accidentally marked as callbacks ( #41607 )
2020-10-10 16:54:36 +02:00
Paulus Schoutsen
5217139e0b
Allow exposing domains in cloud ( #39216 )
2020-08-28 16:49:17 +02: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
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
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
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
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
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00