14 lines
414 B
Python
14 lines
414 B
Python
|
|
"""Devices tab: read-only inventory (paired devices or empty state)."""
|
||
|
|
from hatch_menu import dialog
|
||
|
|
|
||
|
|
TAB = "Devices"
|
||
|
|
|
||
|
|
|
||
|
|
def describe(ws):
|
||
|
|
"""Row inventory + empty flag (describe-only for now)."""
|
||
|
|
text = dialog.dialog_text(ws) or ""
|
||
|
|
low = text.lower()
|
||
|
|
return {"rows": dialog.describe_rows(ws, TAB),
|
||
|
|
"empty": ("no devices" in low or "don't have" in low),
|
||
|
|
"text": text[:400]}
|