From fe626f566942dc765450e9e0cd8a0b4c27dbcfa6 Mon Sep 17 00:00:00 2001 From: Alex van den Hoogen Date: Tue, 26 Nov 2019 20:31:20 +0100 Subject: [PATCH] Add Post Processing Jobs to NZBGet component (#29027) * Added Post Processing Jobs to NZBGet component In the current implementation of the NZBGet component there is no way of knowing whether NZBGet is still in the Post Processing phase of a download job. This can be very useful information. For instance when you want to suspend the NZBGet service when all queue items have been completed. This change adds that additional sensor. * Renamed Count to Jobs in NZBGet component --- homeassistant/components/nzbget/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/nzbget/sensor.py b/homeassistant/components/nzbget/sensor.py index 20b49a492f3..3556c88a6da 100644 --- a/homeassistant/components/nzbget/sensor.py +++ b/homeassistant/components/nzbget/sensor.py @@ -18,6 +18,7 @@ SENSOR_TYPES = { "download_rate": ["DownloadRate", "Speed", "MB/s"], "download_size": ["DownloadedSizeMB", "Size", "MB"], "free_disk_space": ["FreeDiskSpaceMB", "Disk Free", "MB"], + "post_job_count": ["PostJobCount", "Post Processing Jobs", "Jobs"], "post_paused": ["PostPaused", "Post Processing Paused", None], "remaining_size": ["RemainingSizeMB", "Queue Size", "MB"], "uptime": ["UpTimeSec", "Uptime", "min"],