mirror of
https://github.com/home-assistant/core.git
synced 2026-09-01 10:17:44 -05:00
Add home/not_home icons to Asuswrt trackers (#58883)
* add home/not_home icons to Asuswrt trackers like the Nmap trackers have their icons set in https://github.com/home-assistant/core/blob/2df13d01187a4fac2f9038facc180eb2c2543712/homeassistant/components/nmap_tracker/device_tracker.py#L186 * white space
This commit is contained in:
@@ -84,6 +84,11 @@ class AsusWrtDevice(ScannerEntity):
|
||||
"""Return the hostname of device."""
|
||||
return self._device.name
|
||||
|
||||
@property
|
||||
def icon(self) -> str:
|
||||
"""Return device icon."""
|
||||
return "mdi:lan-connect" if self._device.is_connected else "mdi:lan-disconnect"
|
||||
|
||||
@property
|
||||
def ip_address(self) -> str:
|
||||
"""Return the primary ip address of the device."""
|
||||
|
||||
Reference in New Issue
Block a user