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
ec1ae7e2df
Remove homeassistant from cloud dependencies ( #92169 )
2023-04-28 14:27:06 +02:00
Erik Montnemery
2522c6d697
Add WS command cloud/alexa/entities/get ( #92121 )
...
* Add WS command cloud/alexa/entities/get
* Fix bugs, add test
2023-04-27 17:10:29 +02:00
Erik Montnemery
7215f6320e
Avoid exposing unsupported entities to Alexa ( #92107 )
...
* Avoid exposing unsupported entities to Alexa
* Update homeassistant/components/cloud/alexa_config.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-04-27 13:31:24 +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
904ce226fb
Tweak response of /api/cloud/login ( #92058 )
2023-04-26 15:28:08 +02:00
Erik Montnemery
2750a5c3e6
Make assist_pipeline an after dependency of cloud ( #92057 )
2023-04-26 13:45:32 +02:00
Erik Montnemery
ed737f306b
Remove cloud assist pipeline setup from cloud client ( #92056 )
2023-04-26 06:53:58 -04:00
Erik Montnemery
57a59d808b
Automaticially create an assist pipeline using cloud stt + tts ( #91991 )
...
* 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
Erik Montnemery
933761d425
Fix cloud connected signal only firing once ( #92009 )
2023-04-25 12:15:27 -04:00
Erik Montnemery
9a0de43f98
Add name to tts voices ( #91814 )
...
* Add name to tts voices
* Add new file
2023-04-21 20:41:14 -04:00
Erik Montnemery
f3e6d6dfc0
Add async_get_supported_voices to tts.Provider ( #91649 )
...
* Add async_get_supported_voices to tts.Provider
* Update WS API
2023-04-19 13:47:49 +02:00
Paulus Schoutsen
f3897d8dae
Bump hass-nabucasa to 0.65.0 ( #91565 )
2023-04-18 08:42:03 -04:00
Joakim Sørensen
2c8b704a6d
Add certificate status for cloud remote ( #91277 )
2023-04-13 00:38:32 +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
Paulus Schoutsen
86e9f6643f
Allow TTS requests to resolve in the background ( #90944 )
2023-04-06 10:42:55 -05:00
Joakim Sørensen
d907bd2ca3
Add connected relayer region to system health ( #90410 )
2023-03-28 17:09:59 +02:00
Erik Montnemery
f55aaf7664
Drop unused Google entity settings from cloud ( #89786 )
2023-03-16 11:15:38 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
1e352b60df
Add type hints to integration tests (part 11) ( #87996 )
2023-02-13 14:22:49 +01:00
epenet
fa7acb4f0d
Add type hints to integration tests (part 3) ( #87844 )
2023-02-10 16:05:01 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
epenet
a79be493e5
Adjust hass_client type hint in integration tests ( #86954 )
...
* Adjust hass_client type hint in integration tests
* Adjust hass_client_no_auth
* Fix rebase
2023-02-02 16:29:57 -05:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Erik Montnemery
d2fc3a22e2
Drop title from repairs flows ( #83627 )
2022-12-10 11:43:22 +01:00
Joakim Sørensen
f5cfd0329c
Use the async_migrate_paypal_agreement function to get the migration URL ( #83469 )
...
* Use the async_migrate_paypal_agreement function to get the migration URL
* Update URL
* Handle timeout error
2022-12-07 12:02:22 -07:00
Joakim Sørensen
8ed6fcd58e
When an account exist without a subscription "provider" will not exist ( #83472 )
2022-12-07 16:48:34 +01:00
Joakim Sørensen
817bbfe6aa
Bump hass-nabucasa from 0.56.0 to 0.59.0 ( #82987 )
...
* Bump hass-nabucasa from 0.56.0 to 0.58.0
* 0.59.0
2022-12-01 09:08:39 +01:00
Joakim Sørensen
7c82b78f8c
Add repair for legacy subscription to cloud integration ( #82621 )
2022-11-28 23:35:24 +01:00
Erik Montnemery
1bc8770b51
Remove area_id from entity_registry.async_get_or_create ( #77700 )
...
* Remove area_id from entity_registry.async_get_or_create
* Adjust tests
* Fix lying comment in test
2022-09-02 13:31:05 +02:00
Franck Nijhof
c212fe7ca5
Adjust version comparison in HA Cloud account linking ( #76978 )
2022-08-18 14:06:50 +02:00
Franck Nijhof
460837e453
Allow account linking to phase out services ( #75447 )
2022-07-20 11:43:46 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Paulus Schoutsen
6eeb1855ff
Remove entities from Alexa when disabling Alexa ( #73999 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-28 10:32:50 +02:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud ( #72806 )
2022-06-23 11:41:34 +02:00
Franck Nijhof
bfb47eb212
Final clean up of helpers accessed via hass ( #72032 )
...
* 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 ( #72014 )
...
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 ( #68550 )
2022-05-02 09:33:16 -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
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ( #69643 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-09 09:05:54 -10:00
Paulus Schoutsen
130ca2213f
Enforce EntityCategory enum ( #69015 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 15:04:33 -07:00
Erik Montnemery
ff7d5c92d5
Exclude hidden entities from cloud ( #68557 )
2022-03-23 12:42:45 +01:00
Paulus Schoutsen
aabfa08834
Add if subscription is active to cloud status ( #68266 )
2022-03-17 09:51:07 +01:00
Paulus Schoutsen
d3bb622a3c
Bump hass-nabucasa to 0.53.0 ( #66826 )
2022-02-18 11:53:02 -08:00
Paulus Schoutsen
cd5b69d02e
Add Google local indicator ( #66610 )
2022-02-16 07:54:59 -08:00
Tobias Sauerwein
81ad56b8ad
Add events on cloud connect and disconnect ( #65215 )
...
* 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 ( #64940 )
2022-01-26 09:34:48 +01:00
Erik Montnemery
3575009330
Store remote domain in Cloud preferences ( #64532 )
2022-01-21 09:42:34 -08:00
Erik Montnemery
9718fd2534
Enable Alexa state reporting by default ( #63802 )
2022-01-17 23:01:43 -08:00
Erik Montnemery
e6899416e1
Suppress Alexa state reports when not authorized ( #64064 )
2022-01-17 09:14:26 -08:00
Erik Montnemery
537dfbca18
Rename cloud's AlexaConfig to CloudAlexaConfig ( #64065 )
...
* Rename cloud's AlexaConfig to CloudAlexaConfig
* Tweak
2022-01-14 11:09:39 +01:00
Erik Montnemery
be628a7c4d
Keep track of Alexa authorization status ( #63979 )
2022-01-13 09:47:31 -08: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
0b28881b75
Enable Google Assistant state reporting by default ( #63801 )
2022-01-10 13:18:40 +01:00
Paulus Schoutsen
1ea3a17d89
Allow sending webhooks via WS connection ( #62725 )
2022-01-07 10:41:36 -08: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
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
Erik Montnemery
0f2b5ea28e
Don't expose config or diagnostic entities to cloud ( #57771 )
2021-10-15 09:35:32 -07:00
Ville Skyttä
2730a27fd0
Use HTTPStatus instead of HTTP_* constants in various test mocks ( #56543 )
2021-10-01 15:52:45 -07: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
Erik Montnemery
327bf24940
Prevent 3rd party lib from opening sockets in cloud tests ( #56328 )
2021-09-17 12:50:59 +02:00
Paulus Schoutsen
dec7877671
Handle logout prefs update for Google/Alexa ( #56045 )
2021-09-10 09:08:43 -07:00
Paulus Schoutsen
93083513b4
Bump hass-nabucasa 49 ( #55823 )
2021-09-06 16:05:33 -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
Joakim Sørensen
33fb080c1e
Add remote server to cloud system health ( #55506 )
...
* 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 ( #51313 )
2021-06-01 01:35:31 +02:00
Paulus Schoutsen
ba93a033a5
Cloud to set up Alexa conditionally ( #49136 )
2021-04-13 09:31:41 -07: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
Franck Nijhof
f0e5e616a7
Fix device discovery of OAuth2 config flows ( #48326 )
2021-03-25 10:35:01 -07: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
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
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
735607c625
Bump version to 2021.1 ( #44298 )
2020-12-16 23:59:45 +01:00
Klaas Schoute
b358103b58
Update cloud integration to 0.38.0 ( #43314 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-17 16:31:59 +01:00
Paulus Schoutsen
9f4480a634
Add system health streaming updates ( #42831 )
2020-11-10 22:45:59 +01:00
Paulus Schoutsen
15da7b3ca6
Cloud: Recover when internet is not available yet ( #42877 )
2020-11-06 12:12:18 +01:00
springstan
6a7caad8dc
Use content type json constant ( #40312 )
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 ( #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
J. Nick Koston
89a9634d35
Use eventloop for scheduling ( #37184 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
mdegat01
6c7355785a
Add support for glob matching to entity filters ( #36913 )
...
* Added GLOB capability to entityfilter and every place that uses it. All existing tests are passing
* added tests for components affected by glob change
* fixed flake8 error
* mocking the correct listener
* mocking correct bus method in azure test
* tests passing in 3.7 and 3.8
* fixed formatting issue from rebase/conflict
* Checking against glob patterns in more performant way
* perf improvments and reverted unnecessarily adjusted tests
* added new benchmark test around filters
* no longer using get with default in entityfilter
* changed filter name and removed logbook from filter benchmark
* simplified benchmark tests from feedback
* fixed apache tests and returned include exclude schemas to normal
* fixed azure event hub tests to properly go through component logic
* fixed azure test and clean up for other tests
* renaming test files to match standard
* merged mqtt statestream test changes with base
* removed dependency on recorder filter schema from history
* fixed recorder tests after merge and a bunch of lint errors
2020-06-23 20:02:29 -05:00
Paulus Schoutsen
3ee3ae7633
Fix cloudhooks coming in for non existing webhooks ( #36836 )
...
* Fix cloudhooks coming in for non existing webhooks
* Fix tests"
2020-06-15 16:30:40 -07:00
Paulus Schoutsen
a8e9ccbf1a
Improve cloud error handling ( #36670 )
2020-06-11 22:56:00 -07:00
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