From 4361be613d10cbd1461b066a6880d6b3fcfd996a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 19 Apr 2021 01:25:30 -1000 Subject: [PATCH] Expose the hostname of the device in asuswrt (#49393) --- homeassistant/components/asuswrt/device_tracker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/asuswrt/device_tracker.py b/homeassistant/components/asuswrt/device_tracker.py index bf5d120c476..dabbc25ba10 100644 --- a/homeassistant/components/asuswrt/device_tracker.py +++ b/homeassistant/components/asuswrt/device_tracker.py @@ -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."""