diff --git a/src/lib/develco.ts b/src/lib/develco.ts index f122c59120931..529267c551c72 100644 --- a/src/lib/develco.ts +++ b/src/lib/develco.ts @@ -162,13 +162,11 @@ export const develcoModernExtend = { }, temperature: (args?: Partial) => temperature({ - valueIgnore: [0xffff, -0x8000], ...args, }), deviceTemperature: (args?: Partial) => deviceTemperature({ reporting: {min: "5_MINUTES", max: "1_HOUR", change: 2}, // Device temperature reports with 2 degree change - valueIgnore: [0xffff, -0x8000], ...args, }), currentSummation: (args?: Partial) => diff --git a/src/lib/modernExtend.ts b/src/lib/modernExtend.ts index 9e8b8edf8101b..027e9b4c03ca9 100644 --- a/src/lib/modernExtend.ts +++ b/src/lib/modernExtend.ts @@ -2374,7 +2374,6 @@ export interface NumericArgs { valueMin?: number; valueMax?: number; valueStep?: number; - valueIgnore?: number[]; scale?: number | ScaleFunction; label?: string; entityCategory?: "config" | "diagnostic"; @@ -2392,7 +2391,6 @@ export function numeric(args: NumericArgs): ModernExtend { valueMin, valueMax, valueStep, - valueIgnore, scale, label, entityCategory, @@ -2440,8 +2438,6 @@ export function numeric(args: NumericArgs): ModernExtend { let value = msg.data[attributeKey]; assertNumber(value); - if (valueIgnore?.includes(value)) return; - if (scale !== undefined) { value = typeof scale === "number" ? value / scale : scale(value, "from"); } diff --git a/tsconfig.json b/tsconfig.json index 1cd0670283672..3cc66a0579099 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,8 @@ "allowSyntheticDefaultImports": true, "module": "commonjs", "esModuleInterop": true, - "target": "ES2022", - "lib": ["ES2022"], + "target": "esnext", + "lib": ["esnext"], "sourceMap": true, "declaration": true, "declarationMap": true,