hass-core/homeassistant/components/unifi
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 UniFi - Store controller in config_entry.entry_id (#34553) 2020-04-23 16:48:24 +02:00
config_flow.py UniFi - Sites don't declare role on UniFiOS 1.7.0 beta (#35555) 2020-05-13 00:37:16 +02:00
const.py UniFi - Allow tracking of clients connected to third party APs (#34067) 2020-04-17 08:39:01 +02:00
controller.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
device_tracker.py Improve unifi device tracker performance (#37308) 2020-07-02 17:46:37 -05:00
errors.py UniFi - Sites don't declare role on UniFiOS 1.7.0 beta (#35555) 2020-05-13 00:37:16 +02:00
manifest.json UniFi - Handle session expiration (#37782) 2020-07-12 09:47:26 +02:00
sensor.py UniFi - Fix disabled entities being enabled after a restart (#35819) 2020-05-19 23:57:41 +02:00
strings.json UniFi - Remove unused string definition, pointed out by Bram (#35678) 2020-05-15 23:43:00 +02:00
switch.py UniFi - Fix disabled entities being enabled after a restart (#35819) 2020-05-19 23:57:41 +02:00
unifi_client.py UniFi - Additional consolidation for cleanliness sake (#35395) 2020-05-09 00:34:18 +02:00
unifi_entity_base.py UniFi - Fix disabled entities being enabled after a restart (#35819) 2020-05-19 23:57:41 +02:00