Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
Sid
3799d20d43
Enable Ruff B905 ( #114197 )
2024-04-14 00:14:26 -05:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] ( #112736 )
2024-03-08 19:15:59 +01: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
Marc Mueller
7a89e58873
Use builtin TimeoutError [e-i] ( #109679 )
2024-02-05 12:00:37 +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
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap ( #94359 )
2023-06-27 17:42:46 +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
cf39403282
Improve type hints in google assistant ( #87273 )
2023-02-03 17:05:49 +01:00
Joakim Plate
924bffc7d0
Add query data to google assistant diagnostic ( #78828 )
2022-09-20 17:05:10 +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
10b083bbf5
Sync empty entities when Google is disabled in cloud ( #72806 )
2022-06-23 11:41:34 +02:00
J. Nick Koston
d3deae6288
Fix typing on Context.user_id ( #68019 )
2022-03-11 20:31:03 -08:00
Paulus Schoutsen
fb4de7211b
Make Google sync_seralize a callback ( #67155 )
2022-02-24 08:36:36 -08:00
Marc Mueller
ec980a574b
Improve typing [util.decorator] ( #67087 )
2022-02-23 20:58:42 +01:00
Paulus Schoutsen
cd5b69d02e
Add Google local indicator ( #66610 )
2022-02-16 07:54:59 -08:00
Paulus Schoutsen
cf6b3fc810
Add support for proxy-selected intent ( #65094 )
2022-01-28 08:16:28 -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
Erik Montnemery
814a742518
Don't wait for Google Assistant service calls when reporting state ( #59832 )
...
* Don't wait for Google Assistant service calls when reporting state
* Update tests
* Add test
2021-11-29 18:34:38 +01:00
Marc Mueller
12d1dfdaf9
Use assignment expressions 10 ( #57791 )
2021-10-15 21:36:03 +02:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 ( #52972 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Paulus Schoutsen
7e7267f822
Send only a single event per incoming Google command ( #49449 )
2021-04-20 09:21:52 -07:00
Paulus Schoutsen
ab7b42c022
Google: Recover from an entity raising while serializing query ( #39381 )
...
Co-authored-by: Joakim Plate <elupus@ecce.se>
2020-08-30 15:19:56 +02:00
Paulus Schoutsen
8302a7879e
Catch bad devices when Google Sync ( #39377 )
2020-08-29 13:09:50 +02:00
Bram Kragten
01599d44f5
Google local sdk: Set right port, correct device id and add base url ( #34358 )
2020-04-17 20:59:49 -07:00
Franck Nijhof
7d3c974747
Use set & dict literals ( #33636 )
...
Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-04-04 20:05:15 +02:00
Paulus Schoutsen
06216a8a45
Google Assistant: parallize as many requests as possible ( #33472 )
...
* Google Assistant: parallize as many requests as possible
* Fix double comment
2020-03-31 12:01:31 -07:00
Paulus Schoutsen
4501471b8c
Google Assistant: Remove speaker type and earlier filter out devices from being locally exposed ( #31830 )
...
* Remove speaker type
* Do not expose locks or alarms to Google Local
2020-02-14 15:28:11 -08:00
Paulus Schoutsen
8ceef72853
Google Assistant: Track if request is local ( #31226 )
...
* 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 ( #30524 )
2020-01-06 22:00:39 +01:00
springstan
b759d50900
Move imports to top for google_assistant ( #29561 )
...
* 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
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
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
Ville Skyttä
33e1b44b3a
Use PEP 526 type annotations, add some type hints ( #26464 )
...
* Add some more type hints to helpers.event
* Change most type comments to variable types
* Remove some superfluous type hints
2019-09-07 09:48:58 +03:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
nierob
979f801488
Avoid creating temporary lists ( #25317 )
...
That gives nano performance improvements as *() is slightly faster
then *[].
2019-07-19 13:36:18 -07:00
Paulus Schoutsen
6947f8cb2e
Cloud: Websocket API to manage Google assistant entity config ( #24153 )
...
* Extract exposed devices function
* Add might_2fa info to trait
* Do not filter with should_expose in Google helper func
* Cloud: allow setting if Google entity is exposed
* Allow disabling 2FA via config
* Cloud: allow disabling 2FA
* Lint
* More changes
* Fix typing
2019-05-29 08:39:12 -07:00
Paulus Schoutsen
b09f5b6743
Only include agent user ID in SYNC responses ( #23497 )
2019-04-28 09:42:05 +02:00
Paulus Schoutsen
0533f56fe3
Ask users for a pin when interacting with locks/garage doors ( #23223 )
...
* Ask users for a pin when interacting with locks/garage doors
* Deprecate allow_unlock option
2019-04-19 14:50:21 -07:00
Joakim Plate
4a2a130bfa
Google assistant skip missing type ( #23174 )
...
* Skip entity if no device type found
* Add test for potentially skipped binary sensors
* Reorg code, add tests to ensure all exposed things have types
* Lint
* Fix tests
* Lint
2019-04-17 22:37:39 -07:00
Joakim Plate
1bfccd803f
Allow switches to be represented as outlets on google assistant ( #23149 )
...
* Add device class support for switch to support outlet type
* Add a test for cover device class sync
* Drop remnant unused import
2019-04-16 17:07:14 -07:00
giefca
497038b332
Add Google Assistant garage type ( #23115 )
...
* Tests
* Add Google Assistant GARAGE type
* Update test_trait.py
* Key device class by domain
* Update smart_home.py
2019-04-15 13:05:53 -07:00
Paulus Schoutsen
14da2fd8c9
Google Assistant: Add support for open/close binary sensors ( #22674 )
...
* Google Assistant: Add support for binary sensors
* Update test
2019-04-03 10:20:56 -07:00
giefca
b04fd08cea
Google assistant: add blinds trait for covers ( #22336 )
...
* Update const.py
* Update smart_home.py
* Update trait.py
* Update test_trait.py
* Update smart_home.py
* Update test_trait.py
* Update trait.py
* Update trait.py
* Update test_trait.py
* Update test_trait.py
* Update __init__.py
* Update test_trait.py
* Change email
* Trying to correct CLA
* Update __init__.py
* Update trait.py
* Update trait.py
* Update trait.py
* Update trait.py
* Update __init__.py
* Update test_trait.py
* Update test_google_assistant.py
* Update trait.py
* Update trait.py
* Update test_trait.py
* Update test_trait.py
2019-03-29 20:51:47 -07:00
Paulus Schoutsen
c68b621972
Google Assistant: Add camera stream trait ( #22278 )
...
* Add camera stream trait
* Lint
2019-03-23 09:16:43 -07:00
Penny Wood
d1038ea79f
Google Assistant: Create and pass context to service calls ( #21551 )
...
* Google Assistant: Create and pass context to service calls
* Refactor request data into separate object and pass to execute.
2019-03-05 20:00:53 -08:00