Skip to content

Commit 31857a0

Browse files
authored
Remove Asuwrt device tracker last_time_reachable extra attribute (home-assistant#154219)
1 parent 97a0a4e commit 31857a0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

homeassistant/components/asuswrt/device_tracker.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
from . import AsusWrtConfigEntry
1111
from .router import AsusWrtDevInfo, AsusWrtRouter
1212

13-
ATTR_LAST_TIME_REACHABLE = "last_time_reachable"
14-
1513
DEFAULT_DEVICE_NAME = "Unknown device"
1614

1715

@@ -58,8 +56,6 @@ def add_entities(
5856
class AsusWrtDevice(ScannerEntity):
5957
"""Representation of a AsusWrt device."""
6058

61-
_unrecorded_attributes = frozenset({ATTR_LAST_TIME_REACHABLE})
62-
6359
_attr_should_poll = False
6460

6561
def __init__(self, router: AsusWrtRouter, device: AsusWrtDevInfo) -> None:
@@ -97,11 +93,6 @@ def mac_address(self) -> str:
9793
def async_on_demand_update(self) -> None:
9894
"""Update state."""
9995
self._device = self._router.devices[self._device.mac]
100-
self._attr_extra_state_attributes = {}
101-
if self._device.last_activity:
102-
self._attr_extra_state_attributes[ATTR_LAST_TIME_REACHABLE] = (
103-
self._device.last_activity.isoformat(timespec="seconds")
104-
)
10596
self.async_write_ha_state()
10697

10798
async def async_added_to_hass(self) -> None:

0 commit comments

Comments
 (0)