Commit graph

66 commits

Author SHA1 Message Date
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Marc Mueller
b89a51c63d
Improve google_assistant typing () 2023-01-24 18:18:05 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control () 2023-01-20 13:47:55 +01:00
Franck Nijhof
cb13418bab
String formatting and max line length - Part 2 () 2022-12-22 11:38:59 +01:00
Franck Nijhof
1f0ea73463
Add support for entity aliases to Google Assistant () 2022-12-21 23:52:01 +01:00
Paulus Schoutsen
d39ed0cde4
Remove unused custom data in Google Assistant () 2022-09-23 13:03:28 -04:00
epenet
5ae593672e
Remove google_assistant from mypy ignore list () 2022-07-07 11:35:45 +02:00
Joakim Plate
992ceb1a09
Google Assistant diagnostics and synchronization ()
* Add config flow import for local google assistant
* Add diagnostic with sync response
* Add button for device sync
2022-06-27 20:24:15 +02:00
Paulus Schoutsen
57efa9569c
Cache is_supported for Google entities () 2022-06-24 17:05:36 -04:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud () 2022-06-23 11:41:34 +02:00
Paulus Schoutsen
6d74149f22
Sync entities when enabling/disabling Google Assistant () 2022-05-31 14:58:45 -07:00
Paulus Schoutsen
3cd398a5bd
Warn for old Google SDK version () 2022-05-24 10:26:25 +02:00
Marc Mueller
9b9b553521
Disable no-self-use [pylint] ()
* Disable no-self-use

* Remove disable comments
2022-04-25 07:41:01 -07:00
Paulus Schoutsen
49b642a6ba
Log device IP sending local msg () 2022-03-11 07:50:44 -08:00
Paulus Schoutsen
fb4de7211b
Make Google sync_seralize a callback () 2022-02-24 08:36:36 -08:00
Paulus Schoutsen
cd5b69d02e
Add Google local indicator () 2022-02-16 07:54:59 -08:00
Erik Montnemery
07563f4fd2
Disable google_assistant local SDK if SSL is enabled () 2022-01-26 18:55:30 +01:00
Erik Montnemery
aa40476b49
Fix comments, improve readability in Cloud () 2022-01-17 14:19:11 +01:00
Paulus Schoutsen
7872f87dd7
Allow registering a webhook as local only () 2022-01-05 23:45:02 -08:00
Loek Sangers
25fe213f22
Enable local fulfillment google assistant ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-05 12:09:59 -08:00
epenet
ad7a0d799d
Add type hints to google_assistant ()
* Add type hints to google_assistant

* Fix pylint

* Adjust type hint

* Fix black

* Revert changes to smart_home

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 09:10:43 +01:00
Marc Mueller
72801867d6
Use assignment expressions 38 () 2021-10-31 18:49:18 +01:00
Marc Mueller
7063c05127
Use assignment expressions 33 () 2021-10-30 16:32:41 +02:00
Ville Skyttä
b52c5c82b1
Use http.HTTPStatus in components/[gh]* () 2021-10-23 20:34:53 +02:00
Marc Mueller
2a8eaf0e0f
Use assignment expressions 06 () 2021-10-17 20:05:11 +02:00
Marc Mueller
12d1dfdaf9
Use assignment expressions 10 () 2021-10-15 21:36:03 +02:00
Paulus Schoutsen
27e29b714c
Bump cloud to 0.47.1 ()
* 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
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes () 2021-07-19 10:46:09 +02:00
Michael
b1138b1aab
Add constructor return type in integrations E-K () 2021-05-20 18:47:30 +03:00
Erik Montnemery
1a5068f71d
Use supported_color_modes in google_assistant ()
* Use supported_color_modes in google_assistant

* Fix tests
2021-04-14 09:18:22 +02:00
Bram Kragten
03b7b1305c
Cloud: Expose if google is registered in status + check on login ()
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 () 2021-03-23 15:04:32 -07:00
Marc Mueller
9e1a6610dc
Update typing 07 () 2021-03-18 08:02:55 +01:00
Dror Eiger
74efe78d0a
Add device metadata for Google Assistant ()
* Add device metadata for Google Assistant

* Increase test coverage

* Refactor fetching the device and entity entries.
2021-01-26 21:59:43 +01:00
Joakim Plate
56b3e0b52e
Support area on entities for google assistant ()
* Support area on entities

* Don't let registry area override config
2020-12-21 21:55:06 +01:00
Paulus Schoutsen
5626a379de
Guard bad supported features for Google () 2020-10-21 16:37:42 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Bram Kragten
e61280095e
Add uuid to google assistant () 2020-05-25 17:39:09 -07:00
Franck Nijhof
e3e3a113e9
async_get_url -> get_url () 2020-05-08 21:53:28 +02:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
Bram Kragten
01599d44f5
Google local sdk: Set right port, correct device id and add base url () 2020-04-17 20:59:49 -07:00
Paulus Schoutsen
1ac8442c63
Fix Cloud UI bug preventing managing Google 2FA ()
* Fix Cloud UI bug preventing managing Google 2FA

* Update comment
2020-04-15 08:43:43 -07:00
Paulus Schoutsen
4501471b8c
Google Assistant: Remove speaker type and earlier filter out devices from being locally exposed ()
* Remove speaker type

* Do not expose locks or alarms to Google Local
2020-02-14 15:28:11 -08:00
Franck Nijhof
826433b680
Fix device name Google Assistant when using aliases ()
* Fix device name Google Assistant when using aliases

* Adjust cloud tests
2020-02-02 14:48:13 -08:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Paulus Schoutsen
8ceef72853
Google Assistant: Track if request is local ()
* Track if request is local

* Cancel early if 2FA disabled

* Allow disabling 2FA for ack

* Do not mark devices with 2FA as reachable

* Add request source to GA events
2020-01-28 10:54:39 -08:00
Paulus Schoutsen
05374d7c85
Fix google sync () 2020-01-06 22:00:39 +01:00
springstan
b759d50900 Move imports to top for google_assistant ()
* Move imports to top for google_assistant

* Fix pylint error caused by isorting the imports with noqa: F401

* Move back an import because of circular dependency, add annotations
2019-12-08 09:45:13 +01:00
Joakim Plate
4191d9ca8d Report unavailable entities to google ()
* Report unavailable entites to google.

Entities should only removed when removed from HA. Removing a temporarily unavailable entity from google causes it to need to re-configured once it become available again.

* Fix test for unavailable entities
2019-12-02 22:14:16 -08:00
Joakim Plate
2569c4ae37 Google assistant storage of connected agents ()
* 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