Browse Source

Made version a substitution var.

pull/59/head
Maurice Makaay 3 years ago
parent
commit
4af24d8f1d
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      example.yaml
  2. +2
    -1
      packages/core.yaml

+ 2
- 1
example.yaml View File

@ -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


+ 2
- 1
packages/core.yaml View File

@ -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


Loading…
Cancel
Save