Round download speed for nzbget sensor (#2255)

This commit is contained in:
Hugo Dupras authored and Paulus Schoutsen committed 2016-06-09 08:06:01 -07:00
1 parent 5223d20668
commit 1c637558bf
1 file changed
+2 -2
+2 -2
View File
@@ -158,7 +158,7 @@ class NZBGetSensor(Entity):
return
if "DownloadRate" in self.type and value > 0:
# Convert download rate from bytes/s to mb/s
self._state = value / 1024 / 1024
# Convert download rate from Bytes/s to MBytes/s
self._state = round(value / 1024 / 1024, 2)
else:
self._state = value