mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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
|
return attrs
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hostname(self) -> str:
|
||||||
|
"""Return the hostname of device."""
|
||||||
|
return self._device.name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ip_address(self) -> str:
|
def ip_address(self) -> str:
|
||||||
"""Return the primary ip address of the device."""
|
"""Return the primary ip address of the device."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user