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

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):