Skip to content

Commit

Permalink
Add configuration_url so we have an easy way of seeing the IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Sep 9, 2024
1 parent 7a32f3d commit 711701a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/vinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async def get_device_information(lw3: LW3) -> DeviceInformation:
product_name = str(await lw3.get_property("/.ProductName"))
firmware_version = str(await lw3.get_property("/.FirmwareVersion"))
serial_number = str(await lw3.get_property("/.SerialNumber"))
ip_address = str(await lw3.get_property("/MANAGEMENT/NETWORK.IpAddress"))

device_info = DeviceInfo(
identifiers={(DOMAIN, format_mac(mac_address))},
Expand All @@ -41,6 +42,7 @@ async def get_device_information(lw3: LW3) -> DeviceInformation:
model=product_name,
sw_version=firmware_version,
serial_number=serial_number,
configuration_url=f"http://{ip_address}/",
)

return DeviceInformation(mac_address, product_name, device_info)
Expand Down

0 comments on commit 711701a

Please sign in to comment.