core/homeassistant/components/alexa
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
..
__init__.py Add logbook platforms (#37078) 2020-06-24 18:14:50 -07:00
auth.py Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
capabilities.py Alexa media player only include equalizer if supported sound mode (#36285) 2020-05-30 21:42:40 -07:00
config.py Remove some unneeded pylint suppressions (#32152) 2020-02-24 16:47:15 -08:00
const.py Fix alexa flash briefings after removal of api_password auth (#36789) 2020-06-23 08:58:25 -07:00
entities.py Add mode info attributes to script and automation (#37815) 2020-07-14 10:47:59 -07:00
errors.py Implement Alexa.SeekController Interface for media_player in Alexa (#28299) 2019-10-31 10:38:44 +01:00
flash_briefings.py Fix alexa flash briefings after removal of api_password auth (#36789) 2020-06-23 08:58:25 -07:00
handlers.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
intent.py Fix intent component initialisation (#36064) 2020-06-07 20:45:34 -07:00
logbook.py Add logbook platforms (#37078) 2020-06-24 18:14:50 -07:00
manifest.json Add logbook platforms (#37078) 2020-06-24 18:14:50 -07:00
messages.py Fix typos found by codespell (#31243) 2020-01-31 08:33:00 -08:00
resources.py Small code style improvements to Alexa integration (#33660) 2020-04-04 14:20:48 -07:00
services.yaml Add stub services.yaml and make validation mandatory (#23213) 2019-04-18 15:13:35 -07:00
smart_home.py Allow teaching logbook about events (#32444) 2020-03-05 11:55:50 -08:00
smart_home_http.py Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const (#36233) 2020-05-30 17:27:20 +02:00
state_report.py Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00