Expose the hostname of the device in asuswrt (#49393)

This commit is contained in:
J. Nick Koston 2021-04-19 01:25:30 -10:00 committed by GitHub
parent 26cb511d02
commit 4361be613d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""