core/homeassistant/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
..
__init__.py
button.py
config_flow.py
const.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
diagnostics.py
error.py
helpers.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
http.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
logbook.py
manifest.json
report_state.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
services.yaml
smart_home.py
strings.json
trait.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00