diff --git a/CHANGELOG.md b/CHANGELOG.md index 3375d46..d040ead 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ This change log documents all release versions of homebridge-texecom +### 1.0.7 (2025-01-06) + +- **BUG** - Fixed issue to check if username and password is saved and valid. + ### 1.0.6 (2024-11-06) - **BUG** - Fixed string version in package diff --git a/index.js b/index.js index 3e009c8..e8fa643 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,12 @@ function SunsynkPlatform(log, config) { this.username = config.options.username; this.password = config.options.password; + // Validate username and password + if (!this.username || !this.password) { + this.log.error("Username or password is missing in the configuration. Please check your config file."); + return; + } + pollInterval = config.options.pollInterval * 60000; lowbatt = config.options.lowbatt; diff --git a/package.json b/package.json index 3090191..2dc1281 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "displayName": "Homebridge Sunsynk", "name": "homebridge-sunsynk", "description": "A plugin for homebridge to integrate Sunsynk inverter into HomeKit", - "version": "1.0.6", + "version": "1.0.7", "author": { "name": "Chris Posthumus", "email": "chris.posthumus@gmail.com"