Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
Sid
3799d20d43
Enable Ruff B905 ( #114197 )
2024-04-14 00:14:26 -05:00
J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
J. Nick Koston
af1023074e
Add an event_filter to google_assistant state reporting ( #115160 )
...
* adjust
* fix test since it happens sooner now
* remove debug
* remove unneeded test change
* reduce
* reduce
2024-04-07 21:30:03 -04: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
81c34ac952
Fix spelling [docstrings + comments] ( #114168 )
2024-03-25 11:33:00 +01:00
Sid
6ee273a548
Clean up unneeded ruff noqa directives ( #113616 )
2024-03-16 09:48:37 -10:00
Sid
ccd2e989c3
Enable ruff RUF005 and fix occurrences ( #113589 )
2024-03-16 07:37:20 -10:00
Jan Bouwhuis
012291a1f3
Fix google_asssistant sensor state reporting ( #112838 )
...
* Fix post google_assistant sensor values as float not string
* Fix aqi reporting and improve tests
* Fix _air_quality_description_for_aqi and test
2024-03-12 09:07:20 +01:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] ( #112736 )
2024-03-08 19:15:59 +01:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] ( #112699 )
2024-03-08 08:52:48 -05:00
Marc Mueller
f3594c543d
Use KEY_HASS [a-g] ( #112609 )
2024-03-07 18:09:20 +01:00
Erik Montnemery
e06446d0fa
Migrate integrations e-h to generic flowhandler ( #111862 )
2024-02-29 20:07:36 +01:00
Joost Lekkerkerker
a29d29ad85
Add icon translations to Google Assistant ( #111657 )
2024-02-27 22:30:27 +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
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
Joost Lekkerkerker
730d805876
Enable SIM114 ruff rule ( #111125 )
2024-02-23 13:21:59 +01: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
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
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
Jan Bouwhuis
320bf53f75
Add OnOff trait for climate entities in google_assistant ( #109160 )
2024-01-30 21:27:36 -05:00
Jan Bouwhuis
30c9a70dbf
Fix google_assistant climate modes might be None ( #108793 )
2024-01-24 19:47:07 +01:00
Jan Bouwhuis
3016dbc2bd
Enable toggle on valve/cover start in google_assistant ( #106378 )
2023-12-25 15:40:17 +01:00
Jan Bouwhuis
e311a6835e
Add valve platform support to google_assistant ( #106139 )
...
* Add valve platform to google_assistant
* Use constant for domains set
2023-12-23 16:46:25 +01:00
Jan Bouwhuis
f5f9b89848
Add water_heater to google_assistant ( #105915 )
...
* Add water_heater to google_assistant
* Follow up comments
* Add water_heater to default exposed domains
2023-12-20 23:26:55 +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
Paul Bottein
c98c18f25e
Return 'None' for light attributes when off instead of removing them ( #101946 )
2023-10-19 01:08:08 +02: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
Ville Skyttä
e7b6037419
Remove unnnecessary pylint configs from components [e-l]* ( #99004 )
2023-08-25 09:46:34 +02:00
Jan Bouwhuis
e5f7d83912
Update entity feature constants google_assistant ( #98335 )
...
* Update entity feature constants google_assistant
* Update tests
* Direct import
* Some missed constants
* Add fan and cover feature imports
2023-08-13 17:17:47 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Joost Lekkerkerker
28540b0cb2
Migrate google assistant to has entity name ( #96593 )
...
* Migrate google assistant to has entity name
* Fix tests
* Add device name
* Update homeassistant/components/google_assistant/button.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-07-16 17:39:27 +02:00
Franck Nijhof
7bc90297d2
Migrate integration services (G-H) to support translations ( #96372 )
2023-07-12 12:31:26 +02:00
Don Holly
04e277ac95
Add AirQuality SensorState support for Google Assistant ( #80579 )
...
* Add AirQuality SensorState support for Google Assistant
* Code formatting
* Apply suggestions from code review
Co-authored-by: Joakim Plate <elupus@ecce.se>
* Update trait.py
* Update trait.py
* Fix google_assistant tests
* Update trait.py
* Simplify sensor state payload and tests
* Add more tests to fix coverage
* fix tests
* Truncate once
---------
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Erik <erik@montnemery.com>
2023-06-28 08:55:00 +02:00
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap ( #94359 )
2023-06-27 17:42:46 +02:00
Jan Bouwhuis
3b8feab699
Add current_humidity to humidifiers in google_assistant ( #94935 )
2023-06-20 22:49:10 +02:00
Franck Nijhof
c3936e6f14
Replace isort with ruff ( #94302 )
2023-06-08 23:43:56 +02:00
hookedonunix
85a12c37ee
Sync Climate min/max temp with Google Assistant ( #94143 )
...
* Sync climate min/max temp to Google Assistant
* Improving coverage on TemperatureSettingTrait
2023-06-07 20:46:35 -04:00
Erik Montnemery
df138d91e6
Disable google assistant local control of climate entities ( #94153 )
2023-06-07 13:46:17 +02:00
Ville Skyttä
5aadd7ffc9
Import `util.dt` as `dt_util` in `components/[g-i]*` ( #93759 )
2023-05-30 00:01:00 +03: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