Fix nzbget datetime return value (#60953)

This commit is contained in:
Raman Gupta
2021-12-03 18:01:48 -05:00
committed by GitHub
parent 3471a44f92
commit 8c3014169f

View File

@@ -127,6 +127,6 @@ class NZBGetSensor(NZBGetEntity, SensorEntity):
if "UpTimeSec" in sensor_type and value > 0:
uptime = utcnow() - timedelta(seconds=value)
return uptime.replace(microsecond=0).isoformat()
return uptime.replace(microsecond=0)
return value