From deebb9d3e8923f793999753827ec708252325e51 Mon Sep 17 00:00:00 2001 From: cbrandlehner Date: Tue, 12 Nov 2024 15:16:00 +0000 Subject: [PATCH] 1.1.11 --- index.js | 2 +- package-lock.json | 8 ++++---- package.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index ea986a1..6fe4daa 100644 --- a/index.js +++ b/index.js @@ -681,7 +681,7 @@ Daikin.prototype = { this.log.debug('getCurrentHumidity using %s', this.get_sensor_info); this.sendGetRequest(this.get_sensor_info, body => { const responseValues = this.parseResponse(body); - const currentHumidity = Number.parseFloat(responseValues.hhum); + const currentHumidity = (value => Number.isNaN(value) ? 0 : value)(Number.parseFloat(responseValues.hhum)); callback(null, currentHumidity); }); }, diff --git a/package-lock.json b/package-lock.json index a32b1d2..826817e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "homebridge-daikin-local", - "version": "1.1.10", + "version": "1.1.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "homebridge-daikin-local", - "version": "1.1.10", + "version": "1.1.11", "funding": [ { "type": "github", @@ -27,8 +27,8 @@ "xo": "^0.59.3" }, "engines": { - "homebridge": ">=1.6.1", - "node": ">=18.17.0" + "homebridge": "^1.6.1 || ^2.0.0-beta.0", + "node": "^18.19.1 || ^20.15.1" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 7ec8ac0..7a4485e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-daikin-local", - "version": "1.1.10", + "version": "1.1.11", "description": "daikin plugin for homebridge: https://github.com/homebridge/homebridge", "license": "MIT", "keywords": [ @@ -8,8 +8,8 @@ "daikin" ], "engines": { - "node": ">=18.17.0", - "homebridge": ">=1.6.1" + "node": "^18.19.1 || ^20.15.1", + "homebridge": "^1.6.1 || ^2.0.0-beta.0" }, "author": "Christian Brandlehner", "contributors": [