mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Expose the hostname of the device in asuswrt (#49393)
This commit is contained in:
parent
26cb511d02
commit
4361be613d
@ -87,6 +87,11 @@ class AsusWrtDevice(ScannerEntity):
|
||||
)
|
||||
return attrs
|
||||
|
||||
@property
|
||||
def hostname(self) -> str:
|
||||
"""Return the hostname of device."""
|
||||
return self._device.name
|
||||
|
||||
@property
|
||||
def ip_address(self) -> str:
|
||||
"""Return the primary ip address of the device."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user