Module Expr Str Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Assign NameStore Dict Str Str Str Str Str Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str Str Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Raise decorator_list Call NameLoad Call NameLoad keyword Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd NameLoad Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareGt NameLoad Num body Assign AttributeStore NameLoad attr BinOpDiv BinOpDiv NameLoad Num Num orelse Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Support for monitoring NZBGet nzb client.

Uses NZBGet's JSON-RPC API to query for monitored variables.
 N/A logging datetime timedelta N/A requests homeassistant.helpers.entity Entity homeassistant.util Throttle N/A REQUIREMENTS N/A N/A SENSOR_TYPES N/A ArticleCacheMB AverageDownloadRate DownloadRate DownloadPaused FreeDiskSpaceMB PostPaused RemainingSizeMB N/A Article Cache MB N/A Average Speed MB/s N/A Speed MB/s N/A Download Paused None N/A Disk Free MB N/A Post Processing Paused None N/A Queue Size MB N/A DEFAULT_TYPES N/A DownloadRate DownloadPaused RemainingSizeMB N/A _LOGGER N/A N/A logging getLogger __name__ setup_platform N/A N/A hass config add_devices discovery_info N/A None N/A N/A Set up nzbget sensors. N/A base_url N/A N/A config get base_url N/A name N/A N/A config get name NZBGet N/A username N/A N/A config get username N/A password N/A N/A config get password N/A monitored_types N/A N/A config get monitored_variables DEFAULT_TYPES N/A N/A base_url N/A N/A N/A N/A _LOGGER error Missing base_url config for NzbGet N/A False N/A url N/A N/A {}/jsonrpc format base_url N/A N/A N/A nzbgetapi N/A NZBGetAPI api_url url username username password password N/A N/A N/A nzbgetapi update N/A N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A N/A requests exceptions HTTPError N/A conn_err N/A N/A N/A N/A _LOGGER error Error setting up NZBGet API: %r conn_err N/A False N/A devices N/A N/A ng_type monitored_types N/A N/A N/A ng_type SENSOR_TYPES N/A N/A new_sensor N/A NZBGetSensor api nzbgetapi sensor_type ng_type client_name name N/A N/A N/A devices append new_sensor N/A N/A N/A N/A _LOGGER error Unknown nzbget sensor type: %s ng_type N/A N/A add_devices devices N/A NZBGetAPI N/A object N/A N/A Simple json-rpc wrapper for nzbget's api. __init__ N/A N/A self api_url username password N/A None None N/A N/A Initialize NZBGet API and set headers needed later. N/A N/A self api_url api_url N/A N/A self status None N/A N/A self headers N/A content-type application/json N/A N/A N/A username None N/A password None N/A N/A N/A self auth N/A username password N/A N/A N/A self auth None N/A N/A N/A self update N/A post N/A N/A self method params N/A None N/A N/A Send a post request, and return the response as a dict. N/A payload N/A method method N/A params N/A N/A N/A payload N/A params params N/A N/A N/A response N/A N/A requests post N/A self api_url json payload auth N/A self auth headers N/A self headers timeout 30 N/A N/A N/A response raise_for_status N/A N/A N/A response json N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A conn_exc N/A N/A N/A N/A _LOGGER error Failed to update nzbget status from %s.  Error: %s N/A self api_url conn_exc N/A N/A update N/A N/A self N/A N/A N/A Update cached response. N/A N/A N/A N/A self status N/A N/A N/A self post status N/A result N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A N/A N/A N/A Throttle N/A timedelta seconds 5 N/A NZBGetSensor N/A Entity N/A N/A Represents an NZBGet sensor. __init__ N/A N/A self api sensor_type client_name N/A N/A N/A Initialize a new NZBGet sensor. N/A N/A self _name N/A N/A client_name N/A N/A SENSOR_TYPES N/A sensor_type N/A 0 N/A N/A self type sensor_type N/A N/A self client_name client_name N/A N/A self api api N/A N/A self _state None N/A N/A self _unit_of_measurement N/A N/A SENSOR_TYPES N/A sensor_type N/A 1 N/A N/A N/A self update N/A N/A N/A _LOGGER debug created nzbget sensor %r self N/A name N/A N/A self N/A N/A N/A Return the name of the sensor. N/A N/A self _name N/A property state N/A N/A self N/A N/A N/A Return the state of the sensor. N/A N/A self _state N/A property unit_of_measurement N/A N/A self N/A N/A N/A Unit of measurement of this entity, if any. N/A N/A self _unit_of_measurement N/A property update N/A N/A self N/A N/A N/A Update state of sensor. N/A N/A N/A N/A N/A N/A self api update N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A N/A N/A N/A N/A N/A self api status None N/A N/A N/A N/A _LOGGER debug update of %s requested, but no status is available N/A self _name N/A N/A value N/A N/A N/A N/A self api status get N/A self type N/A N/A value None N/A N/A N/A N/A _LOGGER warning unable to locate value for %s N/A self type N/A N/A N/A N/A DownloadRate N/A self type N/A value 0 N/A N/A N/A self _state N/A N/A value 1024 1024 N/A N/A N/A self _state value N/A N/A