Commit graph

18 commits

Author SHA1 Message Date
Martin Hjelmare
f9366e5cc7
Migrate google translate to config entries ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-06-21 14:58:58 +02:00
Erik Montnemery
68379dd55a
Improve TTS cache dir mocking () 2023-05-24 21:00:35 +02:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) () 2023-02-13 11:13:48 +01:00
Todd Johnson
5533368171
Add dialect support to google_translate ()
* Add TLD option support to google_translate

* Fix tests for added TLD option in google_translate

* Add Language to TLD mapping, Make tld configurable in google_translate

* Move const to dedicated file in google_translate
2022-12-01 13:31:19 +01:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
Erik Montnemery
47d0cc9b09
Update integrations to pass target player when resolving media () 2022-05-27 09:05:06 -07:00
Paulus Schoutsen
9303e35a7d
tts.say to use media source URLs () 2022-04-26 13:49:32 -07:00
Paulus Schoutsen
8456c6416e
Add a media source to TTS () 2022-02-14 08:54:12 -08:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Marvin Wichmann
ce056656f8
Implement new Google TTS API via dedicated library ()
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 22:03:31 +01:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements () 2020-04-06 12:51:48 +02:00
Paulus Schoutsen
f41623ca64
Log warning when entities referenced in service call not found ()
* Raise entities not found error

* Make it a warning, not an error

* Add support for MATCH_ENTITY_NONE

* Fix lint

* Fix tests
2020-02-04 14:42:07 -08:00
Bas Nijholt
d58e6e924a Sort imports according to PEP8 for components starting with "G" () 2019-12-09 14:17:36 +01:00
Ville Skyttä
d88ca0f5cb Lint exclusions ()
* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Jason Hu
308d1fbba0 Rename google/tts.py to google_translate/tts.py ()
* Rename google/tts.py to google_translate/tts.py

* Move config migration before load config file

Migrate default config google tts to google_translate tts

* Revert change in process component config

* Fix tests
2019-04-16 14:27:07 -07:00