Michael
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
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
Joakim Sørensen
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
Bram Kragten
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
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
Erik Montnemery
91ba8c0ef0
Warn when casting of tts fails ( #38603 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-21 17:17:36 +02:00
Franck Nijhof
f42eb0d5ca
Fix missing service call context in multiple locations ( #37094 )
2020-06-25 17:09:52 -07:00
Paulus Schoutsen
dfac9c5e03
Fix TTS key by hashing options values too ( #36813 )
2020-06-15 13:33:26 +02:00
baurandr
5ba610859d
Fix exception in callback async_remove_from_mem ( #34075 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-06-02 16:46:17 -07:00
Ville Skyttä
f8416484f8
More data entry flow and HTTP related type hints ( #34430 )
2020-05-26 09:28:22 -05:00
Franck Nijhof
4cf186a47e
Small collection of random styling tweaks, fixes and Pythonism ( #35390 )
2020-05-09 00:10:17 +02:00
Franck Nijhof
e3e3a113e9
async_get_url -> get_url ( #35382 )
2020-05-08 21:53:28 +02:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
springstan
4c38e6cfa5
Use HTTP_BAD_REQUEST constant ( #33797 )
2020-04-09 21:43:42 +02:00
springstan
9a40d5b7ed
Use HTTP_NOT_FOUND constant ( #33835 )
2020-04-09 00:57:47 +02:00
springstan
8d61893c39
Use HTTP_OK constant ( #33798 )
...
* Use http ok constant
* Remove incorrect use
* Run isort
* Fix pylint by adding missing imports
* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
Paulus Schoutsen
b10319f69e
Convert TTS tests to async ( #33517 )
...
* Convert TTS tests to async
* Address comments
2020-04-02 18:55:34 +02:00
Paulus Schoutsen
f41623ca64
Log warning when entities referenced in service call not found ( #31427 )
...
* 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
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Fabian Affolter
bbca6e3ac2
Upgrade shodan to 1.20.0 ( #28983 )
...
* Upgrade shodan to 1.20.0
* Upgrade mutagen to 1.43.0
2019-11-23 23:12:02 +01:00
Pascal Vizeli
005a1b2713
Add additional support over NC ( #28527 )
...
* Add voice support over NC
* Add disocery support for TTS / STT
* fix cloud TTS discovery
* Fix dev config
* Fix discovery
* Bump hass-nabucasa 0.25
* Add channel support
* Fix lint
* Update homeassistant/components/cloud/__init__.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* bump hass-nabucasa
* Update tts.py
* fix lint
2019-11-05 22:39:15 +01:00
Michał Mrozek
1fa6d9887e
Move imports in tts component ( #27565 )
...
* move imports in tts components
* fix: order of imports
2019-10-12 19:59:30 -07:00
Franck Nijhof
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Jason Hu
308d1fbba0
Rename google/tts.py to google_translate/tts.py ( #23090 )
...
* 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
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Anders Melchiorsen
49014ac13f
Remove confusing warning for TTS without entity_id ( #21927 )
2019-03-11 12:31:36 +01:00
Joakim Plate
d16d14b648
Media player const.py move ( #20822 )
...
* Move more constants to const.py
* Import constants directly from const
* ATTR_ENTITY_ID is not defined in media_player
* MEDIA_PLAYER_PLAY_MEDIA_SCHEMA is still in __init__.py
* Correct imports in tts
* PLATFORM_SCHEMA, SCHEMA is still defined in __init__.py
* Pandora imports several services
* Some additional fixes for move of const in media_player
* Fix hound lengths
2019-02-08 14:18:18 -08:00
emontnemery
b1faad0a50
Use PLATFORM_SCHEMA_BASE as base schema for additional components. ( #20578 )
...
* Disable extra=vol.ALLOW_EXTRA for additional platforms.
* Remove PLATFORM_SCHEMA_2
* Add entity_namespace to base platform schema
2019-02-04 21:52:19 -08:00
Paulus Schoutsen
75fa9b2fba
Fix TTS say config validation ( #20145 )
2019-01-16 09:07:32 +01:00
Fabian Affolter
7b81727c69
Upgrade mutagen to 1.42.0 ( #19956 )
2019-01-11 10:38:39 +01:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
Louis-Dominique Dubeau
a1578e3c6e
Add a base_url configuration setting to tts. ( #16478 )
...
* Add a base_url configuration setting to tts.
* Remove the empty string as default value for base_urls
As requested in
https://github.com/home-assistant/home-assistant/pull/16478#pullrequestreview-153526144
2018-09-10 11:50:25 +02:00
Fabian Affolter
1d12c7b0e7
Upgrade mutagen to 1.41.1 ( #16361 )
2018-09-02 12:51:36 +02:00
Fabian Affolter
491bc006b2
Upgrade mutagen to 1.41.0 ( #15739 )
2018-07-29 23:35:27 +02:00
Ville Skyttä
2f7b79764a
More pylint 2 fixes ( #15565 )
...
## Description:
More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).
## Checklist:
- [ ] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +03:00