File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
homeassistant/components/asuswrt Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1010from . import AsusWrtConfigEntry
1111from .router import AsusWrtDevInfo , AsusWrtRouter
1212
13- ATTR_LAST_TIME_REACHABLE = "last_time_reachable"
14-
1513DEFAULT_DEVICE_NAME = "Unknown device"
1614
1715
@@ -58,8 +56,6 @@ def add_entities(
5856class 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 :
You can’t perform that action at this time.
0 commit comments