Skip to content

Commit

Permalink
Add ESPHome 2023.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner committed Dec 17, 2023
1 parent 4151725 commit 581bb28
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: "3.9"

- name: Install ESPHome
run: pip install --user esphome
run: pip install --pre --user esphome

- name: Compile Release Firmware
working-directory: firmware
Expand Down
14 changes: 10 additions & 4 deletions firmware/addons/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ output:
- platform: gpio
inverted: true
id: button_bit1
pin: ${button_bit1_pin}
pin:
number: ${button_bit1_pin}
allow_other_uses: true

- platform: gpio
inverted: true
id: button_bit2
pin: ${button_bit2_pin}
pin:
number: ${button_bit2_pin}
allow_other_uses: true

- platform: gpio
inverted: true
id: button_bit4
pin: ${button_bit4_pin}
pin:
number: ${button_bit4_pin}

- platform: gpio
inverted: true
id: button_m
pin: ${button_m_pin}
pin:
number: ${button_m_pin}

button:
# Recall Presets
Expand Down
6 changes: 3 additions & 3 deletions firmware/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ esphome:
name: "${name}"
friendly_name: "${friendly_name}"
name_add_mac_suffix: true
min_version: "2023.5.1"
min_version: "2023.12.0"
on_boot:
then:
# Wakes up the desk and reports height
Expand All @@ -12,7 +12,7 @@ esphome:
data: [ 0x0 ]
project:
name: tj_horner.upsy_desky
version: "1.2.0"
version: "2.0.0-pre"

uart:
id: handset_tx
Expand Down Expand Up @@ -46,7 +46,7 @@ substitutions:
default_height_units: "in" # Must be "in" or "cm"

packages:
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml@esphome-2023.12
addon_presets: !include addons/presets.yaml
addon_stable_ids: !include addons/stable-ids.yaml
addon_runtime_config: !include addons/runtime-config.yaml
Expand Down

0 comments on commit 581bb28

Please sign in to comment.