Fix follow-up review comment for bbox (#61219)

This commit is contained in:
Paulus Schoutsen
2021-12-07 23:14:21 -08:00
parent 030ac3d762
commit 0b470bb8fb
+1 -2
View File
@@ -131,10 +131,9 @@ class BboxUptimeSensor(SensorEntity):
def update(self):
"""Get the latest data from Bbox and update the state."""
self.bbox_data.update()
uptime = utcnow() - timedelta(
self._attr_native_value = utcnow() - timedelta(
seconds=self.bbox_data.router_infos["device"]["uptime"]
)
self._attr_native_value = uptime.replace(microsecond=0)
class BboxSensor(SensorEntity):