core/tests/components/google_assistant
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
..
snapshots Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
__init__.py Don't use storage collection helper in ExposedEntities (#92396) 2023-05-03 12:39:22 +02:00
test_button.py Migrate google assistant to has entity name (#96593) 2023-07-16 17:39:27 +02:00
test_diagnostics.py Use snapshot assertion for google assistant diagnostics test (#99167) 2023-08-30 12:25:06 +02:00
test_google_assistant.py Add current_humidity to humidifiers in google_assistant (#94935) 2023-06-20 22:49:10 +02:00
test_helpers.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
test_http.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
test_init.py
test_logbook.py
test_report_state.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
test_smart_home.py Update entity feature constants google_assistant (#98335) 2023-08-13 17:17:47 +02:00
test_trait.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00