Commit Graph
427 Commits
Author SHA1 Message Date
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Joakim SørensenandGitHub 2859055b36 Add instance id to the cloud integration (#103162) 2023-11-07 23:52:18 +01:00
Michael HansenandGitHub ae516ffbb5 Automatically convert TTS audio to MP3 on demand (#102814)
* Add ATTR_PREFERRED_FORMAT to TTS for auto-converting audio

* Move conversion into SpeechManager

* Handle None case for expected_extension

* Only use ATTR_AUDIO_OUTPUT

* Prefer MP3 in pipelines

* Automatically convert to mp3 on demand

* Add preferred audio format

* Break out preferred format

* Add ATTR_BLOCKING to allow async fetching

* Make a copy of supported options

* Fix MaryTTS tests

* Update ESPHome to use "wav" instead of "raw"

* Clean up tests, remove blocking

* Clean up rest of TTS tests

* Fix ESPHome tests

* More test coverage
2023-11-06 15:26:00 -05:00
Joakim SørensenandGitHub 267721af43 Bump hass-nabucasa from 0.73.0 to 0.74.0 (#102763) 2023-10-25 11:28:52 +02:00
Joakim SørensenandGitHub a0a3d91a28 Update hass-nabucasa from 0.71.0 to 0.73.0 (#101939) 2023-10-13 21:46:52 +02:00
Marc MuellerandGitHub 0b2b486754 Update mypy to 1.6.0 (#101780) 2023-10-11 13:25:11 +02:00
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
Joakim SørensenandGitHub 1e2b0b65af Bump hass-nabucasa from 0.70.0 to 0.71.0 (#100193)
Bump hass-nabucasa from 0.70.0 to 0.71.1
2023-09-12 09:58:25 -04:00
Joakim SørensenandGitHub 7042a02d72 Add remote alias to connection info response (#99410) 2023-08-31 10:43:32 -04:00
Joakim SørensenandGitHub 8d576c900d Bump hass-nabucasa from 0.69.0 to 0.70.0 (#98935) 2023-08-24 09:18:25 +02:00
Erik MontnemeryandGitHub 91faa53843 Don't allow hass.config.config_dir to be None (#98442) 2023-08-16 13:00:14 +02:00
Marc MuellerandGitHub a9ade1f84d Use asyncio.timeout [core] (#98447) 2023-08-15 08:36:05 -05:00
Jan BouwhuisandGitHub 2a48159b69 Alexa typing part 6 (state_report) (#97920)
state_report
2023-08-08 15:46:54 +02:00
Jan BouwhuisandGitHub 0614702f98 Alexa typing part 5 (smart_home) (#97918)
* smart_home

* Fix test_disabled

* Remove unused type ignore
2023-08-08 11:48:50 +02:00
Franck NijhofandGitHub 5e020ea354 Add is_admin checks to cloud APIs (#97804) 2023-08-08 11:02:42 +02:00
e4af293428 Migrate cloud services to support translations (#96319)
* Migrate cloud services to support translations

* Apply suggestions from code review

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2023-07-11 23:21:00 +02:00
Joakim SørensenandGitHub db01aecb02 Add contents to connection_info handler in cloud client (#95059) 2023-06-27 17:45:41 +02:00
Erik MontnemeryandGitHub f3fc741a71 Bump hass-nabucassa to 0.69.0 (#95367) 2023-06-27 15:29:30 +02:00
Erik MontnemeryandGitHub b600c2cd85 Add cloud_connected method to CloudClient (#91997)
* Add cloud_connected method to CloudClient

* Add cloud_disconnected method

* Update client.py
2023-06-20 17:15:13 +02:00
Erik MontnemeryandGitHub 2bc5198390 Bump hass-nabucassa to 0.68.0 (#94910)
* Bump hass-nabucassa to 0.68.0

* Add implementation of new abstract methods
2023-06-20 13:52:21 +02:00
Erik MontnemeryandGitHub 4802e7f93a Add debug logs to cloud migration (#94151) 2023-06-07 13:16:23 +02:00
Erik MontnemeryandGitHub 33044bc153 Fix migration of Google Assistant cloud settings (#94148) 2023-06-07 11:14:51 +02:00
Erik MontnemeryandGitHub 1a3d6bbb9a Fix typo in cloud (#93917) 2023-06-01 15:21:15 +02:00
c3a3ddcfa4 Standardize spelling of TTS and STT (#93857)
* Standardize spelling of TTS and STT

* Apply suggestions from code review

* Update homeassistant/components/tts/media_source.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-05-31 11:00:19 -04:00
Erik MontnemeryandGitHub 30d9d7d905 Minor adjustment of tts typing (#93450) 2023-05-24 21:02:55 +02:00
Erik MontnemeryandGitHub 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 MontnemeryandGitHub 043812bfc3 Bump hass-nabucasa to 0.67.1 (#92484)
* Bump hass-nabucasa to 0.67.1

* Fix typing
2023-05-08 10:51:47 +02:00
19dcc8c88f Re-run expose entities migration if first time failed (#92564)
* Re-run expose entities migration if first time failed

* Count number of exposed entities

* Add tests

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-05-05 08:11:09 -04:00
b6664ce367 Improve cloud migration (#92520)
* Improve cloud migration

* Tweak

* Use entity_ids func

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-05-04 23:10:43 -04:00
epenetandGitHub 628236209b Fix lingering timer in cloud (#92498) 2023-05-04 19:10:44 +02:00
Erik MontnemeryandGitHub e14be8b0ab Force migration of cloud settings to exposed_entities (#92499) 2023-05-04 09:53:28 -04:00
Erik MontnemeryandGitHub 78da1168db Adjust type hints in CloudClient (#92465) 2023-05-04 12:26:52 +02:00
Erik MontnemeryandGitHub a9d8bc989e Migrate cloud settings for all Google entities (#92416) 2023-05-03 18:56:48 +02:00
Erik MontnemeryandGitHub 51be90d87e Migrate cloud settings for all Alexa entities (#92413)
* Migrate cloud settings for all Alexa entities

* Also set settings for unknown entities
2023-05-03 12:39:27 -04:00
Erik MontnemeryandGitHub f089f52504 Update cloud WS API for getting entity (#92409)
* Update cloud WS API for getting entity

* Adjust comment
2023-05-03 17:06:42 +02:00
Erik MontnemeryandGitHub b71f98e8b7 Include all entities in cloud lists (#92406) 2023-05-03 16:14:04 +02:00
Erik MontnemeryandGitHub 31de1b17e8 Allow setting google disable 2fa flag on any entity (#92403)
* Allow setting google disable 2fa flag on any entity

* Fix test

* Include disable_2fa flag in cloud/google_assistant/entities/get
2023-05-03 09:55:38 -04:00
Erik MontnemeryandGitHub 4860a8d1e8 Don't use storage collection helper in ExposedEntities (#92396)
* Don't use storage collection helper in ExposedEntities

* Fix tests
2023-05-03 12:39:22 +02:00
Erik MontnemeryandGitHub e3c16e634b Allow exposing entities not in the entity registry to assistants (#92363) 2023-05-02 22:08:09 +02:00
Erik MontnemeryandGitHub ec1ae7e2df Remove homeassistant from cloud dependencies (#92169) 2023-04-28 14:27:06 +02:00
Erik MontnemeryandGitHub 2522c6d697 Add WS command cloud/alexa/entities/get (#92121)
* Add WS command cloud/alexa/entities/get

* Fix bugs, add test
2023-04-27 17:10:29 +02:00
7215f6320e Avoid exposing unsupported entities to Alexa (#92107)
* Avoid exposing unsupported entities to Alexa

* Update homeassistant/components/cloud/alexa_config.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-04-27 13:31:24 +02:00
Erik MontnemeryandGitHub 65c9d4a4ae Avoid exposing unsupported entities to Google Assistant (#92105)
* Avoid exposing unsupported entities to Google Assistant

* Add Google Assistant specific support sets

* Add test
2023-04-27 10:38:21 +02:00
Erik MontnemeryandGitHub 904ce226fb Tweak response of /api/cloud/login (#92058) 2023-04-26 15:28:08 +02:00
Erik MontnemeryandGitHub 2750a5c3e6 Make assist_pipeline an after dependency of cloud (#92057) 2023-04-26 13:45:32 +02:00
Erik MontnemeryandGitHub ed737f306b Remove cloud assist pipeline setup from cloud client (#92056) 2023-04-26 06:53:58 -04:00
Joakim SørensenandGitHub c429bfae3e Bump hass-nabucasa from 0.66.1 to 0.66.2 (#92054) 2023-04-26 10:47:41 +02:00
Erik MontnemeryandGitHub 57a59d808b Automaticially create an assist pipeline using cloud stt + tts (#91991)
* Automaticially create an assist pipeline using cloud stt + tts

* Return the id of the cloud enabled pipeline

* Wait for platforms to load

* Fix typing

* Fix startup race

* Update tests

* Create a cloud pipeline only when logging in

* Fix tests

* Tweak _async_resolve_default_pipeline_settings

* Improve assist_pipeline test coverage

* Improve cloud test coverage
2023-04-25 20:40:01 -05:00
Joakim SørensenandGitHub 083f42cce6 Bump hass-nabucasa from 0.65.0 to 0.66.1 (#92020) 2023-04-25 21:00:23 +02:00
Erik MontnemeryandGitHub 933761d425 Fix cloud connected signal only firing once (#92009) 2023-04-25 12:15:27 -04:00