Skip to content

Commit

Permalink
Minor comment improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Jan 8, 2025
1 parent 3b8acdf commit 0ba6c5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/vantage/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ def vantage_device_info(client: Vantage, obj: SystemObject) -> DeviceInfo:
and obj.parent.id in client
and not client.back_boxes.get(obj.parent.id)
):
# Attach the parent device for child objects (except for BackBoxes)
device_info["via_device"] = (DOMAIN, str(obj.parent.id))
else:
# Attach the master device for all other objects
device_info["via_device"] = (DOMAIN, str(obj.master_id))

# Attach the firmware version for Master devices
Expand Down

0 comments on commit 0ba6c5d

Please sign in to comment.