From 695d4a85831a8c3995ff16ab4217a63518f5a201 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 2 Mar 2024 09:38:08 +0100 Subject: [PATCH] Prevents empty QRcode items sent to panel on initialization Solves #1849 --- docs/README.md | 1 + nspanel_blueprint.yaml | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 88ea727..c875902 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,6 +14,7 @@ - [Customization](customization.md) - [Add-on climate](addon_climate.md) - [Alarm Control Panel](alarm.md) +- [API](api.md) - [Using Different Versions of This Project](different_version.md) ## Setup and overview videos: diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 72bf1c0..ff447a6 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -7209,6 +7209,9 @@ action: bt_notific_icon: !input home_button04_icon bt_entities_icon: !input home_button06_icon bt_qrcode_icon: !input home_button05_icon + qrcode: + title: !input qrcode_label + qrcode: !input qrcode_value - service: '{{ nspanel.service.init.page.home }}' data: @@ -7286,8 +7289,8 @@ action: - service: '{{ nspanel.service.qrcode }}' data: - title: !input qrcode_label - qrcode: !input qrcode_value + title: '{{ qrcode.title }}' + qrcode: '{{ qrcode.qrcode }}' show: false continue_on_error: true