1 Commits

Author SHA1 Message Date
TJ Horner
583a14d664 Remove "Height Units" from runtime config temporarily 2023-05-20 19:59:36 -07:00
3 changed files with 19 additions and 17 deletions

View File

@@ -1,18 +1,20 @@
select:
- platform: template
name: "Height Units"
entity_category: "config"
optimistic: true
restore_value: true
options:
- in
- cm
initial_option: ${default_height_units}
on_value:
then:
lambda: |
id(desk_height)->set_unit_of_measurement(x.c_str());
id(target_desk_height)->traits.set_unit_of_measurement(x.c_str());
# Temporarily removed due to a compatibility issue with ESPHome 2023.5
# select:
# - platform: template
# name: "Height Units"
# entity_category: "config"
# optimistic: true
# restore_value: true
# options:
# - in
# - cm
# initial_option: ${default_height_units}
# on_value:
# then:
# lambda: |
# const char *unit = x.c_str();
# id(desk_height)->set_unit_of_measurement(unit);
# id(target_desk_height)->traits.set_unit_of_measurement(unit);
button:
- platform: template

View File

@@ -12,7 +12,7 @@ esphome:
data: [ 0x0 ]
project:
name: tj_horner.upsy_desky
version: "1.0.1"
version: "1.0.2"
uart:
id: handset_tx

View File

@@ -23,4 +23,4 @@ ota:
password: ""
dashboard_import:
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.1
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.2