From c9d036c78bef0c41386b9e71a6319228941cf7b3 Mon Sep 17 00:00:00 2001 From: Simon Fischer Date: Fri, 3 Apr 2026 15:06:30 +0200 Subject: [PATCH 1/2] fix 'Always last available' for pillow version --- main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 10a3b26..71a1df8 100644 --- a/main.js +++ b/main.js @@ -252,17 +252,19 @@ class Esphome extends utils.Adapter { pillowVersions.push(...versions); // Determine Pillow version to use - let usePillowVersion = '12.1.1'; // Default version + let usePillowVersion = ''; - // Check if user has configured a specific pillow version + // Use configured version unless "Always last available" is selected if ( this.config.PillowVersion && this.config.PillowVersion !== '' && this.config.PillowVersion !== 'Always last available' ) { usePillowVersion = this.config.PillowVersion; + } else if (this.config.PillowVersion === 'Always last available' && versions.length > 0) { + // Mirror dashboard behavior: pick newest fetched/cached release + usePillowVersion = versions[0]; } - // If "Always last available" is selected, keep the default latest version this.log.debug(`Using Pillow version: ${usePillowVersion}`); From 788345f8bf543d655014f8734b8e3c65c8581680 Mon Sep 17 00:00:00 2001 From: Simon Fischer Date: Fri, 3 Apr 2026 15:10:54 +0200 Subject: [PATCH 2/2] add readme entry --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6c2b21d..106c375 100644 --- a/README.md +++ b/README.md @@ -394,6 +394,7 @@ If you like my work, please consider a personal donation * (DutchmanNL) --> ### __WORK IN PROGRESS__ +* (@SimonFischer04) fix 'Always last available' for pillow version * (@SimonFischer04) fix copilot hallucinations * (@copilot) **NEW**: Add `lib/dashboardApi.js` module exposing all ESPHome Dashboard API endpoints (`getDevices`, `getConfig`, `getEncryptionKey`, `compile`, `upload`) for tighter dashboard integration * (@copilot) **FIXED**: Invalid jsonConfig warning on adapter install caused by `multiline` property not being allowed on `text` type; changed `uploadContent` to use `textarea` type (fixes #426)