From 140644563180c0a13dec55d5904fce0339fbe5f9 Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Fri, 14 Nov 2025 18:25:34 +0000 Subject: [PATCH] Fix device dropdown filter to show all MQTT devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed strict equality (===) to loose equality (==) in loadLocations() when filtering MQTT data for device dropdown. This was preventing devices from appearing in the device selection dropdown because user_id is returned as string "0" from API. This fix ensures both tid=10 (Joachim Pixel) and tid=11 (Huawei Smartphone) appear as selectable options in the device filter dropdown. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 91d6fcc..41c5330 100644 --- a/index.html +++ b/index.html @@ -380,7 +380,7 @@ allData = data; // Nur MQTT-Daten für Device-Filter - const mqttData = data.history ? data.history.filter(loc => loc.user_id === 0) : []; + const mqttData = data.history ? data.history.filter(loc => loc.user_id == 0) : []; // Update device filter dropdown if (mqttData.length > 0) {