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
e14be8b0ab
Force migration of cloud settings to exposed_entities ( #92499 )
2023-05-04 09:53:28 -04:00
Erik Montnemery
51be90d87e
Migrate cloud settings for all Alexa entities ( #92413 )
...
* Migrate cloud settings for all Alexa entities
* Also set settings for unknown entities
2023-05-03 12:39:27 -04:00
Erik Montnemery
470c3a0f5f
Use exposed_entities API in cloud tests ( #92408 )
2023-05-03 16:50:43 +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
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
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
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
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
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +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
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
Erik Montnemery
1aaf78ef99
Remove entity category system in favor of hidden_by ( #68550 )
2022-05-02 09:33:16 -07: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
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
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() ( #63910 )
2022-01-11 17:33:50 +01: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
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
ba93a033a5
Cloud to set up Alexa conditionally ( #49136 )
2021-04-13 09:31:41 -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
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01: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
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
d3bbd9ec65
Delay sync for Google and limit updates to relevant info ( #34622 )
2020-04-24 10:49:11 +02:00
Bas Nijholt
fbd4cf1089
use isort to sort imports according to PEP8 for cloud ( #29626 )
2019-12-08 22:31:12 +05:30
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
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
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