Commit Graph

11 Commits (37fd438717e1112ff8979138a72b7f5c068f5e35)

Author SHA1 Message Date
Ville Skyttä 2f7b79764a More pylint 2 fixes ()
## Description:

More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).

## Checklist:
  - [ ] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +03:00
cgtobi be5f0fb3ac Add hddtemp sensor device even if unreachable. ()
* Add hddtemp sensor device even if unreachable.

* Removed old commented code.

* Move unit detection logic into update.
2017-11-17 09:21:27 -05:00
Fabian Affolter 6d94c121a7
Move constant to 'const.py' () 2017-10-31 13:31:12 +01:00
cgtobi 20a1a52bd5 Add unit test for hddtemp sensor. ()
* Add unit test for hddtemp sensor.

* Remove sample fixture and include it in the code.

* Add test to raise coverage.

* Fix bug when host is not reachable.

* Minor code cleanups.

* More code cleanups.
2017-10-29 11:53:53 +01:00
cgtobi 789929d445 Add support for multiple disks to be monitored. ()
* Add support for multiple disks.

* Fix LINT error.

* Make disk config optional to not break existing installations.

* Change state handling as per request by @fabaff.
2017-10-21 20:45:53 +02:00
Paulus Schoutsen 46e030662d Fix pylint 1.7.2 no-else-return issues ()
* Fix pylint 1.7.2 no-else-return issues

* Update tomato.py
2017-07-05 23:30:01 -07:00
Fabian Affolter 760138ac52 Do not call update() in constructor () 2017-06-05 21:28:13 +02:00
Fabian Affolter a4f1f6e724 Update docstrings ()
* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
2017-05-02 09:18:47 -07:00
Fabian Affolter 87764a51ba Use device_state_attributes() for platforms ()
* Use device_state_attributes() for platforms

* Update test

* Fix lint issue
2017-01-30 16:16:49 +01:00
Fabian Affolter c128919b5f Remove globally disabled pylint warnings () 2016-11-03 18:40:43 -07:00
Fabian Affolter bf92aedd38 Add hddtemp sensor () 2016-10-28 19:06:24 -07:00