mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix nzbget datetime return value (#60953)
This commit is contained in:
parent
3471a44f92
commit
8c3014169f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user