hass-core/homeassistant/components/smartthings
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-07-19 00:03:02 +00:00
__init__.py Exception chaining and wrapping improvements (#39320) 2020-08-28 13:50:32 +02:00
binary_sensor.py Rename BinarySensorDevice to BinarySensorEntity (#34462) 2020-04-23 21:57:07 +02:00
climate.py Check isinstance on collections.abc, not typing classes (#35087) 2020-05-02 23:57:48 +02:00
config_flow.py Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
const.py Remove unused SmartThings capability subscriptions (#38128) 2020-07-31 17:40:23 +02:00
cover.py Rename CoverDevice to CoverEntity (#34595) 2020-04-25 18:07:15 +02:00
fan.py Directly call async_write_ha_state (#33508) 2020-04-01 14:19:51 -07:00
light.py Rename Light to LightEntity (#34593) 2020-04-26 18:49:41 +02:00
lock.py Rename LockDevice to LockEntity (#34594) 2020-04-25 18:02:41 +02:00
manifest.json Bump pysmartthings 0.7.3 (#38732) 2020-08-10 22:32:00 +02:00
scene.py Add transition support to scenes, cleanup blocking parameter (#34434) 2020-04-20 18:07:50 -07:00
sensor.py Drop UNIT_ prefix for constants (#34164) 2020-04-21 19:45:53 +02:00
smartapp.py Remove unused SmartThings capability subscriptions (#38128) 2020-07-31 17:40:23 +02:00
strings.json Add config flow base strings (#34523) 2020-05-04 20:10:39 -07:00
switch.py Rename SwitchDevice to SwitchEntity (#34673) 2020-04-26 18:50:37 +02:00