mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
Fix bbox timestamp (#61202)
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user