diff --git a/src/lib/adapter-config.d.ts b/src/lib/adapter-config.d.ts index 055e92e..e823260 100644 --- a/src/lib/adapter-config.d.ts +++ b/src/lib/adapter-config.d.ts @@ -7,12 +7,11 @@ declare global { ipAddress: string; username: string; password: string; - pollStatesOf: string[] = []; + pollStatesOf: string[]; pollingInterval: number; } } } // this is required so the above AdapterConfig is found by TypeScript / type checking -export { }; - +export {}; diff --git a/src/types.ts b/src/types.ts index b5b890c..acc434b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -127,16 +127,8 @@ export class HexAnalogState extends CommonState { private IEEE754_Hex32ToDez(param1: any, t: any): string { const a = param1.toString(16); - let e, - i, - n, - l, - o, - r, - s, - d, - g, - x = '00000000'; + let e, i, n, l, o, r, s, d, g; + const x = '00000000'; return ( (i = x + parseInt(a.substr(0, 2), 16).toString(2)), (n = x + parseInt(a.substr(2, 2), 16).toString(2)),