Code clean-up
This commit is contained in:
@@ -34,13 +34,7 @@ esphome:
|
||||
condition:
|
||||
- lambda: !lambda return id(disp1).is_setup();
|
||||
timeout: 20s
|
||||
- logger.log: "Exit reparse"
|
||||
- uart.write:
|
||||
id: tf_uart
|
||||
data: "DRAKJHSUYDGBNCJHGJKSHBDN"
|
||||
- uart.write:
|
||||
id: tf_uart
|
||||
data: [0xFF, 0xFF, 0xFF]
|
||||
- script.execute: exit_reparse
|
||||
- wait_until:
|
||||
condition:
|
||||
- lambda: !lambda return id(disp1).is_setup();
|
||||
@@ -2418,6 +2412,17 @@ script:
|
||||
}
|
||||
id(disp1).set_component_text_printf("page_index", "%s", indicator.c_str());
|
||||
|
||||
- id: exit_reparse
|
||||
mode: restart
|
||||
then:
|
||||
- logger.log: "Exit reparse"
|
||||
- uart.write:
|
||||
id: tf_uart
|
||||
data: "DRAKJHSUYDGBNCJHGJKSHBDN"
|
||||
- uart.write:
|
||||
id: tf_uart
|
||||
data: [0xFF, 0xFF, 0xFF]
|
||||
|
||||
##### ADD-ONS ############################################################
|
||||
##### Add-on - Climate #####
|
||||
- id: addon_climate_service_call
|
||||
|
||||
Reference in New Issue
Block a user