Commit graph

12 commits

Author SHA1 Message Date
Marc Mueller
8f2ea5f3cc
Use EntityDescription - rtorrent () 2021-08-24 10:24:16 +02:00
Erik Montnemery
e558b3463e
Move temperature conversions to sensor base class (6/8) ()
* Move temperature conversions to entity base class (6/8)

* Fix tests
2021-08-12 17:40:55 +02:00
Franck Nijhof
f17a5f0db9
Clean up redudant exceptions from handlers () 2021-06-11 13:29:50 +02:00
Erik Montnemery
64bc9a8196
Migrate integrations r-s to extend SensorEntity () 2021-03-22 19:54:14 +01:00
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
smega
f3fed5647e
Extend rtorrent sensor functionality ()
* Extend rtorrent sensor functionality.

* Remove blank line from end of file.

* After using black formatter.

* Update sensor.py using snake_case for variable names.

* Update PR by using true value in condition.
2020-03-13 15:29:49 +01:00
Ville Skyttä
3e23a3a860
Add and use bunch of data size and rate related constants ()
Also fix a few units to match the corresponding data.
2020-02-13 08:52:57 -08:00
Bas Nijholt
485761bbaf Sort imports according to PEP8 for components starting with "R" () 2019-12-09 14:39:51 +01:00
Franck Nijhof
445c741b30 Use literal string interpolation in integrations R-S (f-strings) () 2019-09-03 21:14:39 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Matt Black
6b3c740dc3 Handle stacktrace when rtorrent host is unreachable () 2019-06-15 12:48:55 -07:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
Renamed from homeassistant/components/sensor/rtorrent.py (Browse further)