Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lifx/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ def latency(self):
response = self._block_for_response(ping_payload, pkt_type=protocol.TYPE_ECHOREQUEST)
end = time.time()
return end - start

@property
def properties(self):
"""
Returns a tuple of the device's vendor id, product id, and version.
See https://lan.developer.lifx.com/docs/lifx-products to interpret
"""
response = self._block_for_response(pkt_type=protocol.TYPE_GETVERSION)
return response

@property
def label(self):
Expand Down