mirror of
https://github.com/home-assistant/core.git
synced 2026-09-15 02:35:36 -05:00
Fix nzbget datetime return value (#60953)
This commit is contained in:
committed by
Paulus Schoutsen
parent
f78e59842d
commit
6af9471710
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user