mirror of
https://github.com/tjhorner/upsy-desky.git
synced 2026-01-08 23:17:59 -05:00
Add height units config back with fixes
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
select:
|
select:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
id: height_units_config
|
||||||
name: "Height Units"
|
name: "Height Units"
|
||||||
entity_category: "config"
|
entity_category: "config"
|
||||||
optimistic: true
|
optimistic: true
|
||||||
@@ -11,7 +12,9 @@ select:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
lambda: |
|
lambda: |
|
||||||
id(desk_height)->set_runtime_unit_of_measurement(x);
|
const char *unit = id(height_units_config)->state.c_str();
|
||||||
|
id(desk_height)->set_unit_of_measurement(unit);
|
||||||
|
id(target_desk_height)->traits.set_unit_of_measurement(unit);
|
||||||
|
|
||||||
button:
|
button:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
|||||||
Reference in New Issue
Block a user