Commit graph

31 commits

Author SHA1 Message Date
Jerad Meisner
76fb2447a5 Bump pysabnzbd version () 2018-03-10 09:27:13 +01:00
Paulus Schoutsen
36361d623d
Make Throttle async aware ()
* Make Throttle async aware

* Lint
2018-03-09 19:38:51 -08:00
Jerad Meisner
6c358fa6a3 Migrated SABnzbd sensor to asyncio and switched to pypi library ()
* Migrated SABnzbd sensor to asyncio and switched to pypi library

* bumped pysabnzbd version and refactored imports
2018-02-11 09:33:56 -08:00
bigwoof
5dbd554a10 Adding Queue count sensor ()
Adding another sensor to output the numeber of items in the SABnabd queue.  This is an alternative to displaying filesize, just a preference thing, as it is more meaningfull for me the way I use SABnzdb. 

Note this is my first time coding on github and I have no idea if I am doing things right, I assume that all I needed to do is add a couple of lines to the sensors available and also another line as to what to extract from the SABnzdb API, in this case I have called the sensor "queue_count" and it gets the value from the noofslots_total which as I understand - each slot is a separate download item. 

hope I did this correctly - also I don't have a separate instance of home assistant running for testing so I have no way to test this code (and I don't know how I would switch to the dev channel either).  As I said I am a newb!
2017-11-21 15:35:23 +01:00
Markus Nigbur
a83e741dc7 Refactored to new global json saving and loading ()
* Refactored to new global json saving and loading

* Fixed emulated_hue tests

* Removed unnecassary error handling

* Added missing newline

* Remove unused imports

* Fixed linting error

* Moved _load_json wrapper out of the config class
2017-11-19 19:47:55 -08:00
Adam Mills
19d1d748d4 Add support for Automatic OAuth2 authentication ()
* Add support for Automatic OAuth2 authentication

* Fix async conversion of configurator

* Rename method for async

* Use hass.components to get configurator component

* Fix typo

* Move session data to hidden directory

* Make configurator callback optional
2017-08-13 22:37:50 -07:00
Paulus Schoutsen
4b3a932d88 Sabnzbd: do not assume discovery info is a dict () 2017-08-13 11:29:48 -07:00
Hellowlol
cf298c2435 Make HA discover sabnzbd and add it to the Configurator ()
* Init discover sab.

* Fix hound errors

Nobody likes being hound at :(

* sabnzbd discovery says if ssl is active.

* Fixups after codereview.
2017-08-04 23:24:55 +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
be272ac64a Disable too-many-* ()
* Disable too-many-* and too-few-public-methods

* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
0198ba4eac Allow https (fixes ) () 2016-09-03 16:45:31 -07:00
Fabian Affolter
e8c6e4d561 Clean-up, ordering, constants, and extend of schema ()
* Clean-up, ordering, constants, and extend of schema

* Put REQUIREMENTS back and re-add line breaks

* Clean-up, ordering, constants, and extend of schema

* Extend platform
2016-08-20 15:40:16 -07:00
Fabian Affolter
1c140de0dc Use voluptuous for NZB sensors () 2016-08-16 21:42:43 +02:00
Fabian Affolter
8bff97083c Fix PEPE257 issues 2016-03-08 16:46:34 +01:00
Fabian Affolter
60d579af84 Update/add docstrings (PEP257) 2016-02-23 06:23:04 +01:00
Paulus Schoutsen
e80309c03c Fix imports (using isort) 2016-02-18 21:27:50 -08:00
Paulus Schoutsen
a9c6f8c1d9 Enforce entity attribute types 2016-01-17 17:50:20 -08:00
Paulus Schoutsen
a301d869d7 PyLint 1.5 fixes 2015-11-29 13:49:05 -08:00
Fabian Affolter
97f9f8aa49 Update link to docs (Jekyll 3 update) 2015-11-09 13:12:18 +01:00
Fabian Affolter
761f225c86 Update link 2015-10-20 22:20:58 +02:00
Fabian Affolter
6064fffc8e Move configuration details to docs 2015-10-14 10:39:51 +02:00
Paulus Schoutsen
dd23a0b3eb Fix sabnzbd imports 2015-09-08 20:22:13 -07:00
Paulus Schoutsen
89bdead44c Remove latest git submodules 2015-09-08 20:11:25 -07:00
Fabian Affolter
914a6dff5e Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:40:09 +02:00
Fabian Affolter
fdb46d80ba Update documentation 2015-05-13 19:06:17 -07:00
jamespcole
470096047b removed unused imports 2015-03-22 15:43:59 +11:00
jamespcole
04d16d7607 removed unused state attributes that are no longer required after upstream changes 2015-03-22 15:18:58 +11:00
jamespcole
e877ed01af Fixed attribute error with new unit_of_measurement changes 2015-03-22 14:43:20 +11:00
Paulus Schoutsen
a9324ba9d4 Update components to use Entity instead of Device 2015-03-21 19:16:13 -07:00
jamespcole
b477514e58 Added in API availability check and better exception handling 2015-03-21 12:10:38 +11:00
jamespcole
efdb54cbe4 Added in SABnzbd sensor 2015-03-09 05:28:12 +11:00