Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01: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
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +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
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-Philipp Benecke
0ae0331c5c
Migrate google related tests to use freezegun ( #105552 )
...
* Migrate google related tests to use freezegun
* retrigger CI
* Fix google tests
* Add timezone to config_entry_token_expiry
* Separate config_entry_token_expiry from token_expiry
* Also test token refresh for offset-naive tokens
* retrigger CI
* Apply code review suggestion
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* Run ruff-format
---------
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-12-21 12:23:01 +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
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
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
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
Frédéric Guardia
85f2693353
Fix Google Assistant temperature attribute ( #85921 )
2023-03-01 12:54:07 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) ( #87982 )
2023-02-13 11:13:48 +01:00
epenet
7a4d15a657
Add type hints to integration tests (f-g) ( #87700 )
2023-02-08 13:33:52 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Franck Nijhof
fca3382d37
Migrates tests to use MediaPlayerEntityFeature enum ( #86779 )
2023-01-27 10:56:40 +01:00
Michael
e5f67c9119
Replace the usage of unit constants by enumerations in Tests [f-g] ( #85933 )
2023-01-15 14:46:45 +01:00
epenet
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
epenet
7ffac12de7
Adjust root-import in google-assistant tests ( #78768 )
2022-09-19 15:40:56 +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
J. Nick Koston
723dcbafca
Complete fan speed transition from #59781 ( #67743 )
2022-03-09 10:38:12 +01:00
Franck Nijhof
3f7275a9c7
Give scenes last activated state ( #62673 )
2022-01-07 19:02:32 +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
Franck Nijhof
dc47cbd01b
Add input_button support to Google Assistant ( #62593 )
2021-12-23 07:38:35 +01:00
Dave T
569d5644ab
Use DeviceClass Enums in google_assistant tests ( #62142 )
2021-12-16 22:50:46 -08: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
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
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
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
1a5068f71d
Use supported_color_modes in google_assistant ( #49176 )
...
* Use supported_color_modes in google_assistant
* Fix tests
2021-04-14 09:18:22 +02:00
Tobias Haber
f785cc7d9a
Google has deprecated a comma separated list for modes changed it to array ( #48029 )
2021-03-17 20:59:06 -07:00
tkdrob
ab53b49d3f
Clean up constants ( #46948 )
...
* Clean up constants
* clean up humidifier constants
* fix tests
* fix prometheus tests
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-03-02 12:52:00 +01:00
Paulus Schoutsen
7c2545af6e
Use async_capture_events to avoid running in executor ( #47111 )
2021-02-26 13:28:52 -08:00
Joakim Plate
0bfcd5e1ee
Use explicit open/close for covers ( #46602 )
2021-02-16 10:26:38 +01:00
J. Nick Koston
d417ee2732
Add fan speed percentage support to google assistant ( #45835 )
2021-02-02 14:39:07 +01:00
Joakim Plate
3de0610909
Support google assistant stopping for assumed state covers ( #44266 )
...
* Support stopping for assumed state covers
* Adjust black formatting
2021-01-02 23:01:20 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00