mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 16:45:19 +02:00
Fix nzbget datetime return value (#60953)
This commit is contained in:
@@ -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