mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00: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 2df13d0118/homeassistant/components/nmap_tracker/device_tracker.py (L186)
* white space
This commit is contained in:
parent
8d910c5079
commit
9307cbf861
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user