mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix bbox timestamp (#61202)
This commit is contained in:
parent
271b798dc9
commit
fa75c1f92f
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user