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
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
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
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
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
Erik Montnemery
9a17c437ad
Remove some dead code from google_assistant ( #90581 )
2023-03-31 15:59:48 +02:00
Frédéric Guardia
85f2693353
Fix Google Assistant temperature attribute ( #85921 )
2023-03-01 12:54:07 +01:00
Franck Nijhof
8c993116e1
Enable Ruff SIM401 ( #86790 )
...
* Enable Ruff SIM401
* Adjust found cases
2023-01-27 13:08:44 +01:00
Marc Mueller
b89a51c63d
Improve `google_assistant` typing ( #86537 )
2023-01-24 18:18:05 +01:00
Franck Nijhof
cb13418bab
String formatting and max line length - Part 2 ( #84393 )
2022-12-22 11:38:59 +01:00
epenet
9580c4f1ec
Use UnitOfTemperature in integrations (e-h) ( #84305 )
2022-12-20 18:29:16 +01:00
epenet
dd7a06b9dc
Use unit_conversion in components ( #78991 )
2022-09-23 17:33:32 +02:00
Joakim Plate
bd0daf68e0
If brightness is not available, don't set a value ( #78827 )
2022-09-20 07:57:54 -04:00
epenet
416a5cb279
Import constants from component root ( #78395 )
2022-09-14 00:12:54 +02:00
epenet
5c8e8e4860
Use new media player enums ( #78264 )
2022-09-12 20:06:27 +02:00
Jan Bouwhuis
448b720eb7
Fix trait processing Fan state without percentage_step ( #77351 )
...
* Fix trait processing Fan without percentage_step
* Update homeassistant/components/google_assistant/trait.py
Co-authored-by: Joakim Plate <elupus@ecce.se>
* Fix test
* Fix formatting
Co-authored-by: Joakim Plate <elupus@ecce.se>
2022-08-27 17:17:02 +02:00
Joakim Plate
3eaa1c30af
Restore fixed step fan speeds for google assistant ( #76871 )
2022-08-17 22:15:48 -04:00
Nephiel
ab5dfb3c42
Use climate enums in google_assistant ( #75888 )
2022-07-29 12:08:32 +02:00
epenet
5ae593672e
Remove google_assistant from mypy ignore list ( #74587 )
2022-07-07 11:35:45 +02:00
jack5mikemotown
b91a1c1b0a
Fix Google Assistant brightness calculation ( #72514 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-26 13:01:23 -07:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 ( #65788 )
2022-02-05 14:19:37 +01:00
epenet
f083b97f9f
Import camera ( #64540 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-20 13:07:05 +01:00
ryborg
5f5adffd5b
Fix CO/CO2 sensors mixup in Google Assistant ( #63152 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-04 18:24:44 +01:00
htmltiger
de2adce1ca
Fix TypeError of vacuum battery level None ( #62722 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-27 20:55:43 +01:00
Franck Nijhof
dc47cbd01b
Add input_button support to Google Assistant ( #62593 )
2021-12-23 07:38:35 +01:00
epenet
3e0e2978e6
Use new DeviceClass enums in google-assistant ( #61611 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-13 23:19:32 +01: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
Franck Nijhof
42ed6ddba3
Add button support to Google Assistant ( #60158 )
2021-11-22 20:50:21 -08:00
Bram Kragten
47b6755177
Google Cast: Use own media player app ( #55524 )
2021-11-10 19:40:49 +01: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
Sian
351ef0ab44
Register Google assistant energy storage trait ( #56520 )
2021-09-22 13:36:03 -07:00
Erik Montnemery
a1aca20818
Address review comment from #55833 ( #55985 )
2021-09-08 13:48:31 -07:00
Erik Montnemery
232943c93d
Add significant change support to AQI type sensors ( #55833 )
2021-09-08 12:47:48 -07:00
Matthew Garrett
dd21bf73fc
Assistant sensors ( #55480 )
2021-08-30 20:33:06 -07:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
Giuseppe Iannello
ec3bfcea46
Support for EnergyStorageTrait for vacuum cleaners ( #55134 )
2021-08-25 10:12:31 -07:00
Giuseppe Iannello
4d7de0fd4c
Add support for Google Assistant's LocatorTrait for vacuum cleaners ( #55015 )
...
* Support for LocatorTrait for vacuum cleaners
* Handle Locator request with `silence: True`
* Update homeassistant/components/google_assistant/trait.py
Co-authored-by: Joakim Plate <elupus@ecce.se>
* Black
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-23 20:16:50 -07:00
Brian Egge
441552e04c
Fix TypeError when climate component sets fan modes to None ( #54709 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-16 19:02:01 +02:00
Joakim Plate
8a7cb389ed
Drop support for fan speeds and support reverse ( #53105 )
2021-07-20 22:07:15 -07:00
J. Nick Koston
5d85983b09
Update google assistant locks to support locking, unlocking, jammed ( #52820 )
2021-07-20 23:49:05 -05:00
Franck Nijhof
655f797f67
Add Select entity support to Google Assistant ( #51997 )
2021-06-18 23:30:46 +02:00
Jan Bouwhuis
2222a121f4
Add support for fan speed percentage and preset modes to google_assistant integration ( #50283 )
...
* support relative fan speeds
* fan preset modes
* improve tests
* Revert relative speed code report zero percentage
2021-06-02 22:09:22 +02:00
Paul Bottein
fb61ef500c
Add TV channel trait to google assistant ( #49676 )
2021-05-25 09:12:42 -07:00
Bram Kragten
b69b55987d
Google report state: thermostatMode should be a string, not null ( #49342 )
2021-04-19 08:20:00 -07:00
Chris Browet
591d09c177
Use google assistant TemperatureControl trait to report sensor ( #46491 )
...
* CHG: use TemperatureControl trait to report sensor
* fixup: blacked
* fixup: flaked
* fixup: flaked
* Adjust tests
* fixup test and rebase
* test coverage
2021-04-19 11:41:30 +02:00
Erik Montnemery
3d90d6073e
Add common light helpers to test for feature support ( #49199 )
2021-04-15 20:32:27 +02:00