Skip to content

Commit

Permalink
Add support for the 'visit device' link
Browse files Browse the repository at this point in the history
  • Loading branch information
rroller committed Dec 12, 2021
1 parent 25fe6a5 commit d3a2e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/netgear_wax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def get_mac(self) -> str:
return self._mac

def get_ip_address(self) -> str:
"""
Returns the IP address, example: 192.168.1.2
"""
return self._address

def get_device_name(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions custom_components/netgear_wax/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def device_info(self):
"name": self._coordinator.get_device_name(),
"model": self._coordinator.get_model(),
"manufacturer": "Netgear",
"configuration_url": "https://" + self._coordinator.get_ip_address(),
"sw_version": self._coordinator.get_firmware_version(),
}
# See extra_state_attributes for extra data
Expand Down

0 comments on commit d3a2e7f

Please sign in to comment.