From 4af24d8f1d0e5a4ab5a60a7e0f16173bb1079272 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Sun, 17 Oct 2021 01:50:22 +0200 Subject: [PATCH] Made version a substitution var. --- example.yaml | 3 ++- packages/core.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example.yaml b/example.yaml index 9fcc421..f142a4b 100644 --- a/example.yaml +++ b/example.yaml @@ -6,6 +6,7 @@ # -------------------------------------------------------------------------- substitutions: + version: dev #name: bedside-lamp #friendly_name: Bedside Lamp #light_name: ${friendly_name} RGBWW Light @@ -32,7 +33,7 @@ substitutions: packages: bslamp2: url: https://github.com/mmakaay/esphome-xiaomi_bslamp2 - ref: dev + ref: ${version} files: - packages/core.yaml - packages/behavior_default.yaml diff --git a/packages/core.yaml b/packages/core.yaml index 1433bef..f631925 100644 --- a/packages/core.yaml +++ b/packages/core.yaml @@ -4,6 +4,7 @@ # -------------------------------------------------------------------------- substitutions: + version: dev name: bedside-lamp friendly_name: Bedside Lamp light_name: ${friendly_name} RGBWW Light @@ -28,7 +29,7 @@ esp32: # Retrieve the code for the xiaomi_bslamp2 platform from GitHub. external_components: - - source: github://mmakaay/esphome-xiaomi_bslamp2@dev + - source: github://mmakaay/esphome-xiaomi_bslamp2@${version} refresh: 60s # Disable the reboot timeout. By default, the lamp reboots after 15