Fix bbox timestamp (#61202)

This commit is contained in:
Paulus Schoutsen 2021-12-07 22:47:38 -08:00 committed by GitHub
parent 271b798dc9
commit fa75c1f92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ class BboxUptimeSensor(SensorEntity):
uptime = utcnow() - timedelta( uptime = utcnow() - timedelta(
seconds=self.bbox_data.router_infos["device"]["uptime"] seconds=self.bbox_data.router_infos["device"]["uptime"]
) )
self._attr_native_value = uptime.replace(microsecond=0).isoformat() self._attr_native_value = uptime.replace(microsecond=0)
class BboxSensor(SensorEntity): class BboxSensor(SensorEntity):