Skip to content

Commit

Permalink
Include the "device label" in the device name too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Sep 9, 2024
1 parent ec8f323 commit cc3a8dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/vinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ async def get_device_information(lw3: LW3) -> DeviceInformation:
async with lw3.connection():
mac_address = str(await lw3.get_property("/.MacAddress"))
product_name = str(await lw3.get_property("/.ProductName"))
device_label = str(await lw3.get_property("/SYS/MB.DeviceLabel"))
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))},
name=product_name,
name=f"{device_label} ({product_name})",
manufacturer="Lightware",
model=product_name,
sw_version=firmware_version,
Expand Down

0 comments on commit cc3a8dd

Please sign in to comment.