Commit Graph
161 Commits
Author SHA1 Message Date
Marc MuellerandFranck Nijhof 6397138589 Update Optional typing (1) [Py310] (#86417)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-23 09:56:10 +01:00
Franck Nijhof cf5fca0464 Code styling tweaks to core entity components (#85460) 2023-01-08 13:40:08 -10:00
Franck Nijhof 8819634b61 String formatting and max line length - Part 6 (#84525) 2022-12-24 13:19:51 +01:00
Erik Montnemery ae2b2acab5 Fix grammar in tts service description (#81916) 2022-11-10 17:25:42 +01:00
Franck Nijhof 8bc9aa9ea4 Update mutagen to 1.46.0 (#80004)
* Update mutagen to 1.46.0

* Ignore untyped call
2022-10-11 20:49:58 +03:00
Franck Nijhof 2b27cfdabb Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
Paulus Schoutsen 697e7b3a20 TTS Cleanup and expose get audio (#79065) 2022-09-25 20:53:20 -04:00
epenetandMarc Mueller 55e59b778c Add type hints to TTS provider (#78285)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-12 23:29:55 +02:00
epenet 5c8e8e4860 Use new media player enums (#78264) 2022-09-12 20:06:27 +02:00
Paulus Schoutsen 99f3ca1f08 Add support for announce to play_media (#72566) 2022-05-30 20:41:05 -07:00
Paulus Schoutsen 56000c0378 Clean up when TTS base URL is applied (#70835) 2022-04-27 02:18:29 +02:00
Paulus Schoutsen 9303e35a7d tts.say to use media source URLs (#70382) 2022-04-26 13:49:32 -07:00
Paulus SchoutsenandJoakim Plate 984e30075b Validate TTS base url (#68212)
* Validate TTS base url

* Update tests/components/tts/test_init.py

Co-authored-by: Joakim Plate <elupus@ecce.se>

Co-authored-by: Joakim Plate <elupus@ecce.se>
2022-03-16 10:18:55 +01:00
Marc Mueller 45d8d04c40 Use assignment expressions [other] (#66882) 2022-02-19 17:22:51 +01:00
Marc Mueller ac50248938 Add type ignore error codes [other] (#66781) 2022-02-17 23:10:25 -08:00
Bram KragtenandPaulus Schoutsen a9390908ea Keep TTS media browser params in identifier (#66663)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 08:54:57 -08:00
Paulus Schoutsen 8456c6416e Add a media source to TTS (#66483) 2022-02-14 08:54:12 -08:00
J. Nick Koston 5b755b74fb Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenetandepenet 8bcf495caf Import tts (#64212)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-17 22:01:28 -08:00
epenetandepenet c1692a324b Add type hints to tts (#64050)
* Add type hint for _get_cache_files

* Add type hint for _init_tts_cache_dir

* Add init type hints for async_clear_cache

* Add type hints to async_setup_platform

* Add type hints to async_register_engine

* Add type hints to self.providers

* Add type hints to _async_store_to_memcache

* Add type hints to async_file_to_mem

* Add full type hints

* Use tuple in async_read_tts

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 12:35:29 +01:00
Marc Mueller fa7e787415 Update typing (3) [k-t] (#63924) 2022-01-11 21:26:55 +01:00
Marc Mueller ae6d9c229e Use const imports [l-z] (#63469) 2022-01-05 18:21:20 +01:00
epenetandepenet 92ace6c2e8 Ensure service calls are typed [s-u] (#62922)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:23:42 +01:00
John Howard 7e9863f9c8 Removing trailing \ in tts entity description (#59313) 2021-11-09 10:51:54 +01:00
Marc Mueller b1d49b3b66 Use assignment expressions 29 (#58713) 2021-10-30 16:31:43 +02:00
Marc Mueller ea7252e377 Use assignment expressions 21 (#57970) 2021-10-20 17:47:46 +02:00
Ville Skyttä cc97502a0c Use HTTPStatus instead of HTTP_* consts in aiohttp web response statuses (#56541) 2021-10-01 09:27:44 -07:00
Ville Skyttä d8d34fdd3b Prefer HTTPStatus over int in HA view JSON functions (#56504)
* Prefer HTTPStatus over int in HA view JSON functions

* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
tkdrobandFranck Nijhof 028a07d86f Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
MichaelandErik Montnemery df6862a519 Add strict type annotations to amazon_polly (#50697)
* add strict type annotations

* apply suggestions

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-05-17 14:09:52 +02:00
tkdrob 639dac1eaa Add selector to tts services (#49703) 2021-04-26 14:51:28 +02:00
jan iversen 6992e24263 Rename HomeAssistantType —> HomeAssistant, integrations t* - v* (#49544)
* Integration vizio: HomeAssistantType -> HomeAssistant.

* Integration velbus: HomeAssistantType -> HomeAssistant.

* Integration vacuum: HomeAssistantType -> HomeAssistant.

* Integration upnp: HomeAssistantType -> HomeAssistant.

* Integration upcloud: HomeAssistantType -> HomeAssistant.

* Integration twinkly: HomeAssistantType -> HomeAssistant.

* Integration tts: HomeAssistantType -> HomeAssistant.

* Integration tradfri: HomeAssistantType -> HomeAssistant.

* Integration traccar: HomeAssistantType -> HomeAssistant.

* Integration tplink: HomeAssistantType -> HomeAssistant.
2021-04-22 10:53:57 -04:00
Martin HjelmareandFranck Nijhof 7e30ab2fb2 Add missing internal quality scale label (#48947)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-10 12:37:20 +02:00
Joakim SørensenandPaulus Schoutsen eef7faa1e4 Add TTS engines in config.components (#48939)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-04-09 16:13:07 -07:00
Philip Allgaier 450f3740cd Use consolidated constant for "description" (#48490) 2021-03-31 14:12:15 +02:00
Marc Mueller b67b9b94f9 Update typing 13 (#48077) 2021-03-18 14:43:52 +01:00
Bram Kragten b0d56970a5 Fix TTS services name (#46988) 2021-02-24 13:43:24 +01:00
afa91e886b Add description to tts and notify services (#46764)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-02-23 14:29:57 +01:00
Ville Skyttä a6358430b4 Fix deprecated asyncio.wait use with coroutines (#44981)
https://docs.python.org/3/library/asyncio-task.html#asyncio-example-wait-coroutine
2021-02-10 14:16:58 +01:00
Paulus Schoutsen 92e084cee1 Include relative path in tts get url (#45623)
* Include relative path in tts get url

* Always cal get_url when requested
2021-01-28 09:33:18 +01:00
Kevin Cathcart 0674ae6205 Fix pico tts errors (#41619)
Enabled the use of mutagen in unit tests.
Added a test for tagging a minimal .wav file.
2020-10-21 11:58:07 +02:00
Diogo Gomes c4148eb2c5 Add notify platform to TTS (#40028) 2020-10-13 11:52:51 +02:00
Franck Nijhof 4d12fcc218 Fix TTS ID3 Tag capability check (#41343) 2020-10-06 17:49:14 +02:00
Justin Paupore b4799ba66d Fix TTS handling of non-ID3 metadata tags (#41191)
Change #40666 used mutagen's ID3 TextFrame to wrap metadata information.
While this is the correct behavior for container formats that use ID3
metadata tags, such as MP3 and linear PCM, Ogg container formats use
a different metadata format. For these containers, the metadata needs to
be a bare str, not wrapped in a TextFrame.
2020-10-04 11:59:53 +02:00
Franck Nijhof f3edec1191 Fix ID3 tagging in TTS (#40740) 2020-09-29 10:19:26 +02:00
Chris 52b745b8a9 set ID3 tags as TextFrame types (#40666) 2020-09-27 20:40:57 +02:00
Ville Skyttä b4bac0f7a0 Exception chaining and wrapping improvements (#39320)
* Remove unnecessary exception re-wraps

* Preserve exception chains on re-raise

We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.

The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.

Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.

* Fix mistaken re-wrap in homematicip_cloud/hap.py

Missed the difference between HmipConnectionError and
HmipcConnectionError.

* Do not hide original error on plex new cert validation error

Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Pascal Vizeli 342e84e550 Fix TTS languange characters (#39211) 2020-08-25 14:23:21 +02:00
Fabian Affolter 2bf31dc5b3 Upgrade mutagen to 1.45.1 (#39166) 2020-08-23 12:08:52 +02:00
Erik MontnemeryandPaulus Schoutsen 91ba8c0ef0 Warn when casting of tts fails (#38603)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-21 17:17:36 +02:00