Commit Diff


commit - a2baea55fb5788bc43b58495ffae4e7aa069cafe
commit + cd0be7d7baa5b36e4bfc0a7a3dbb62979eee9f87
blob - 975bf25c84203801cd58a6175b7b637f54e7574c
blob + 9f4c6206d2dbc2a313ec3e68100434265bd52458
--- get-lights.py
+++ get-lights.py
@@ -43,10 +43,10 @@ with urllib.request.urlopen(req, context=no_cert_check
 json_data = json.loads(content)
 
 
-print(f"{'ID':>2s}: {'Name':<32s} {'State':<5s} Type")
+print(f"{'ID':>3s}  {'Name':<32s} {'State':<5s} Type")
 print ("################################################################################")
 for key in json_data:
 	if not json_data[key]['state']['reachable']:
 		continue
 	state = 'on' if json_data[key]['state']['on'] else 'off'
-	print(f"{key:>2s}: {json_data[key]['name']:<32s} {state:<5s} {json_data[key]['type']}")
+	print(f"{key:>3s}: {json_data[key]['name']:<32s} {state:<5s} {json_data[key]['type']}")