From 7a0375bcaa1f7b5f3be8c7273023f6cdb3f02be3 Mon Sep 17 00:00:00 2001 From: Script0803 Date: Thu, 27 Mar 2025 09:44:23 +0800 Subject: [PATCH] Fix the issue of incorrectly identifying powerFactor Phase B/Phase C --- src/devices/bituo_technik.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/bituo_technik.ts b/src/devices/bituo_technik.ts index ae790bb332d6d..db875d52a5817 100644 --- a/src/devices/bituo_technik.ts +++ b/src/devices/bituo_technik.ts @@ -20,7 +20,7 @@ const bituo_fz = { const lowerField = field.toLowerCase(); if ( lowerField.includes("power") && // Fields containing "power" are included - lowerField !== "powerfactor" // excluding "powerFactor" (case-sensitive, lowercase comparison) + !lowerField.includes("powerfactor") // excluding "powerFactor" (case-sensitive, lowercase comparison) ) { if (msg.data[field] !== undefined) { msg.data[field] = msg.data[field] * divisor;