hass-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 Replace isort with ruff (#94302) 2023-06-08 23:43:56 +02:00
button.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
config_flow.py
const.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
diagnostics.py Add query data to google assistant diagnostic (#78828) 2022-09-20 17:05:10 +02:00
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 Make use of str.removeprefix and .removesuffix (#85584) 2023-01-13 12:19:38 +01:00
manifest.json Sort manifests 4 (#87025) 2023-02-08 20:27:05 +01:00
report_state.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00
services.yaml Migrate integration services (G-H) to support translations (#96372) 2023-07-12 12:31:26 +02:00
smart_home.py Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
strings.json Migrate google assistant to has entity name (#96593) 2023-07-16 17:39:27 +02:00
trait.py Add doorbell event to google_assistant (#97123) 2023-09-25 23:20:02 +02:00