hass-core/homeassistant/components/hue
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
..
translations [ci skip] Translation update 2020-08-27 00:04:55 +00:00
__init__.py Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
binary_sensor.py Rename BinarySensorDevice to BinarySensorEntity (#34462) 2020-04-23 21:57:07 +02:00
bridge.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
config_flow.py Add support for reload_on_update to _abort_if_unique_id_configured (#38638) 2020-08-08 13:23:56 -05:00
const.py Disable Hue groups for new setups (#31713) 2020-02-11 08:50:07 -08:00
device_trigger.py Reorganize trigger code (#38655) 2020-08-17 11:54:56 -05:00
errors.py Convert Hue to always use config entries (#13034) 2018-03-29 20:15:40 -07:00
helpers.py Update Hue data fetching (#31338) 2020-01-31 14:47:40 -08:00
hue_event.py Use global CONF_UNIQUE_ID for hue (#38596) 2020-08-09 13:20:11 -05:00
light.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
manifest.json Add Hue manual bridge config flow + options flow (#37268) 2020-07-02 14:12:24 +02:00
sensor.py Fire events for hue remote buttons pressed (#33277) 2020-03-31 10:27:30 -07:00
sensor_base.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
sensor_device.py Fire events for hue remote buttons pressed (#33277) 2020-03-31 10:27:30 -07:00
services.yaml Add missing services.yaml file for hue (#23217) 2019-04-19 14:53:58 -07:00
strings.json Fix typos in Hue integration (#37597) 2020-07-07 09:33:37 -05:00