Commit graph

87 commits

Author SHA1 Message Date
Marc Mueller
81c34ac952
Fix spelling [docstrings + comments] (#114168) 2024-03-25 11:33:00 +01:00
Sid
ccd2e989c3
Enable ruff RUF005 and fix occurrences (#113589) 2024-03-16 07:37:20 -10:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
Erik Montnemery
9b91da23c4
Improve logging of google_assistant messages (#110637)
* Improve logging of google_assistant messages

* Add tests

* Add test
2024-02-26 11:43:31 +01:00
J. Nick Koston
8645184dbf
Make matter import in google_assistant late to avoid blocking the event loop (#111335)
related issue https://github.com/home-assistant-libs/python-matter-server/issues/578
2024-02-25 07:20:01 -05:00
Erik Montnemery
a51d3b4286
Remove store from google_assistant AbstractConfig (#109877)
* Remove store from google_assistant AbstractConfig

* Bump minor version of google_assistant store

* Fix test

* Improve comments

* Fix typo

* Refactor

* Update homeassistant/components/google_assistant/http.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix bug, add tests

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-12 19:24:21 +01:00
Erik Montnemery
674e4ceb2c
Make additional methods of google_assistant.AbstractConfig abstract (#109811) 2024-02-06 19:14:12 +01:00
Erik Montnemery
0cb913370f
Rename google_assistant.AbstractConfig.get_local_agent_user_id (#109798)
* Rename google_assistant.AbstractConfig get_local_agent_user_id to get_local_user_id

* Fix
2024-02-06 15:40:12 +01:00
Erik Montnemery
9d42455955
Move async_deinitialize to google_assistant AbstractConfig (#109736) 2024-02-05 19:53:22 +01:00
Erik Montnemery
09ba46ddb9
Mask sensitive data in google_assistant logs (#109366)
* Mask sensitive data in google_assistant logs

* Move common code to homeassistant/util/redact.py

* Move to helpers

* Add tests

* Tweak

* Redact additional logs

* Fix stale docstring

* Don't reveal the length of masked data

* Update test
2024-02-02 22:10:30 +01:00
Erik Montnemery
816c2e9500
Improve enabling of Google local fulfillment (#109192)
* Improve enabling of Google local fulfillment

* Add test

* Improve test coverage
2024-01-31 16:28:27 +01:00
Marcel van der Veldt
52450291cb
Fix device sync to Google Assistant if Matter integration is active (#104796)
* Only get Matter device info if device is an actual Matter device

* Return None if matter device does not exist

* lint

* fix test

* adjust google assistant test
2023-11-30 16:59:26 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Paulus Schoutsen
130822fcc6
Attach Matter info to Google Assistant serialize (#103768) 2023-11-24 12:55:05 +01:00
Jan Bouwhuis
4709e60ff6
Rework on Google Assistant doorbell support (#100930)
* Rework on Google Assistant doorbell event

* Additional comment on syncing notificatiions

* Update homeassistant/components/google_assistant/trait.py

* Only sync event if state attr changed

* Update comment
2023-10-07 19:39:04 +02:00
Jan Bouwhuis
c5b32d6307
Add doorbell event to google_assistant (#97123)
* First attempt async_report_state_all

* Move notificationSupportedByAgent to SYNC response

* Make notificationSupportedByAgent conditional

* Add generic sync_options method

* Report event

* Add event_type as ID

* User UUID, imlement query_notifications

* Refactor query_notifications

* Add test

* MyPy

* Unreachable code

* Tweak

* Correct notification message

* Timestamp was wrong unit, it should be in seconds
* Can only allow doorbell class, since it's the only type

* Fix test

* Remove unrelated changes - improve coverage

* Additional tests

---------

Co-authored-by: Joakim Plate <elupus@ecce.se>
2023-09-25 23:20:02 +02:00
J. Nick Koston
ff2e0c570b
Improve performance of google assistant supported checks (#99454)
* Improve performance of google assistant supported checks

* tweak

* tweak

* split function

* tweak
2023-09-04 20:53:59 -04: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
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
epenet
246f9784c8
Adjust registry access in Google Assistant (#88883) 2023-02-28 21:59:26 -05:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Marc Mueller
b89a51c63d
Improve google_assistant typing (#86537) 2023-01-24 18:18:05 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
Franck Nijhof
cb13418bab
String formatting and max line length - Part 2 (#84393) 2022-12-22 11:38:59 +01:00
Franck Nijhof
1f0ea73463
Add support for entity aliases to Google Assistant (#84405) 2022-12-21 23:52:01 +01:00
Paulus Schoutsen
d39ed0cde4
Remove unused custom data in Google Assistant (#79003) 2022-09-23 13:03:28 -04:00
epenet
5ae593672e
Remove google_assistant from mypy ignore list (#74587) 2022-07-07 11:35:45 +02:00
Joakim Plate
992ceb1a09
Google Assistant diagnostics and synchronization (#73574)
* 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 (#73936) 2022-06-24 17:05:36 -04:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud (#72806) 2022-06-23 11:41:34 +02:00
Paulus Schoutsen
6d74149f22
Sync entities when enabling/disabling Google Assistant (#72791) 2022-05-31 14:58:45 -07:00
Paulus Schoutsen
3cd398a5bd
Warn for old Google SDK version (#72403) 2022-05-24 10:26:25 +02:00
Marc Mueller
9b9b553521
Disable no-self-use [pylint] (#70641)
* Disable no-self-use

* Remove disable comments
2022-04-25 07:41:01 -07:00
Paulus Schoutsen
49b642a6ba
Log device IP sending local msg (#67987) 2022-03-11 07:50:44 -08:00
Paulus Schoutsen
fb4de7211b
Make Google sync_seralize a callback (#67155) 2022-02-24 08:36:36 -08:00
Paulus Schoutsen
cd5b69d02e
Add Google local indicator (#66610) 2022-02-16 07:54:59 -08:00
Erik Montnemery
07563f4fd2
Disable google_assistant local SDK if SSL is enabled (#64983) 2022-01-26 18:55:30 +01:00
Erik Montnemery
aa40476b49
Fix comments, improve readability in Cloud (#64291) 2022-01-17 14:19:11 +01:00
Paulus Schoutsen
7872f87dd7
Allow registering a webhook as local only (#63516) 2022-01-05 23:45:02 -08: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
epenet
ad7a0d799d
Add type hints to google_assistant (#62748)
* 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 (#58828) 2021-10-31 18:49:18 +01:00
Marc Mueller
7063c05127
Use assignment expressions 33 (#58717) 2021-10-30 16:32:41 +02:00
Ville Skyttä
b52c5c82b1
Use http.HTTPStatus in components/[gh]* (#58246) 2021-10-23 20:34:53 +02:00
Marc Mueller
2a8eaf0e0f
Use assignment expressions 06 (#57786) 2021-10-17 20:05:11 +02:00
Marc Mueller
12d1dfdaf9
Use assignment expressions 10 (#57791) 2021-10-15 21:36:03 +02: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
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
Michael
b1138b1aab
Add constructor return type in integrations E-K (#50902) 2021-05-20 18:47:30 +03:00