From 4bd1104d428ca7578345db924c93bca6c740b4bd Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 18 Jan 2024 00:58:38 +0100 Subject: [PATCH] Fix crash on boot init when no climate entity is selected Solves #1677 Solves #1676 --- ReleaseNotes.md | 7 ++++++- nspanel_blueprint.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 3f0ab1c..c00b927 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -405,6 +405,7 @@ visit our [GitHub repository](https://github.com/Blackymas/NSPanel_HA_Blueprint) or our [online documentation](https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/main/docs/README.md). ## Patch v4.2.4 +In this update, we have focused on addressing critical issues to enhance the reliability and performance of our system. We highly recommend all users update their components to this latest version for an optimized and enhanced user experience. While this update is compatible with existing v4.2 components, fully updating ensures the best performance and usability. @@ -414,10 +415,14 @@ While this update is compatible with existing v4.2 components, fully updating en | Change | Criticality | Affected Components | | :-- | :--: | :--: | | Nextion is not connected for too long time on boot (#1667 & #1674) | Critical | `TFT` | +| Panel not starting when no climate entity is selected (#1676 & #1677) | Critical | `Blueprint` | **Key Improvements:** -- **Fix for Panel Long Boot Process**: Resolved an issue with the panel getting very long time on the Boot page ("Initializing..."). +- **Fix for Panel Long Boot Process**: Resolved an issue with the panel taking an excessively long time on the Boot page ("Initializing..."), +ensuring a quicker startup and more efficient operation. +- **Fix for Panel Not Starting Without Climate Entity**: Addressed a critical issue where the panel would not start if no climate entity was selected. +This fix ensures smooth operation and startup of the panel regardless of the climate entity configuration. For support, feedback, or detailed information about this update, visit our [GitHub repository](https://github.com/Blackymas/NSPanel_HA_Blueprint) diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index fa581a4..627698e 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -7670,7 +7670,7 @@ action: - *delay-default - variables: - climate_friendly_name: '{{ state_attr(climate, "friendly_name") }}' + climate_friendly_name: '{{ state_attr(climate, "friendly_name") if climate is string and climate is match "climate." else "" }}' - service: '{{ nextion.command.global_settings }}' data: blueprint_version: '{{ blueprint_version }}'