hass-core/homeassistant/components/zha
Ville Skyttä b4bac0f7a0
Exception chaining and wrapping improvements ()
* 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
..
core Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
translations [ci skip] Translation update 2020-08-27 00:04:55 +00:00
__init__.py Remove invalidation version from ZHA deprecated config options () 2020-06-25 08:17:31 -04:00
api.py Exception chaining and wrapping improvements () 2020-08-28 13:50:32 +02:00
binary_sensor.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
climate.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
config_flow.py Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
cover.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
device_action.py guard against invalid trigger and action scenarios () 2020-03-05 15:52:09 -05:00
device_tracker.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
device_trigger.py Exception chaining and wrapping improvements () 2020-08-28 13:50:32 +02:00
entity.py Track entity sources () 2020-08-19 14:57:38 +02:00
fan.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
light.py Make default duration 1/10th of a second for ZHA light calls () 2020-08-10 17:40:07 -04:00
lock.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
manifest.json Bump zigpy-cc version () 2020-08-27 09:36:35 -04:00
sensor.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00
services.yaml Add prettier (in pre-commit and CI) () 2020-04-05 17:27:16 +02:00
strings.json add event and device action for when devices drop () 2020-08-09 20:37:07 -04:00
switch.py Cleanup async_accept_signal in ZHA () 2020-07-20 07:04:57 -07:00