feat: show WLED MAC address on Tuerschilder page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -210,12 +210,13 @@ def check_devices():
|
||||
info = get_wled_info(dev["hostname"])
|
||||
conn.execute("""
|
||||
UPDATE wled_devices
|
||||
SET online=?, leds=?, version=?, last_check=?
|
||||
SET online=?, leds=?, version=?, mac=?, last_check=?
|
||||
WHERE id=?
|
||||
""", (
|
||||
1 if info.get("online") else 0,
|
||||
info.get("leds", 0) if info.get("online") else 0,
|
||||
info.get("version", "") if info.get("online") else "",
|
||||
info.get("mac", "") if info.get("online") else "",
|
||||
datetime.now(),
|
||||
dev["id"],
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user