diff --git a/advanced/esphome/nspanel_esphome_core.yaml b/advanced/esphome/nspanel_esphome_core.yaml index 80698d2..38447e8 100644 --- a/advanced/esphome/nspanel_esphome_core.yaml +++ b/advanced/esphome/nspanel_esphome_core.yaml @@ -427,24 +427,24 @@ api: embedded_climate: bool entity: string then: - - if: - condition: - lambda: 'return not id(is_uploading_tft);' - then: - - lambda: |- - if (current_page->state == "climate") detailed_entity->publish_state(entity); - - script.execute: - id: set_climate - current_temp: !lambda "return current_temp;" - supported_features: !lambda "return supported_features;" - target_temp: !lambda "return target_temp;" - target_temp_high: !lambda "return target_temp_high;" - target_temp_low: !lambda "return target_temp_low;" - temp_step: !lambda "return temp_step;" - total_steps: !lambda "return total_steps;" - temp_offset: !lambda "return temp_offset;" - climate_icon: !lambda "return climate_icon;" - embedded_climate: !lambda "return embedded_climate;" + - if: + condition: + lambda: 'return not id(is_uploading_tft);' + then: + - lambda: |- + if (current_page->state == "climate") detailed_entity->publish_state(entity); + - script.execute: + id: set_climate + current_temp: !lambda "return current_temp;" + supported_features: !lambda "return supported_features;" + target_temp: !lambda "return target_temp;" + target_temp_high: !lambda "return target_temp_high;" + target_temp_low: !lambda "return target_temp_low;" + temp_step: !lambda "return temp_step;" + total_steps: !lambda "return total_steps;" + temp_offset: !lambda "return temp_offset;" + climate_icon: !lambda "return climate_icon;" + embedded_climate: !lambda "return embedded_climate;" #### Service to set the buttons #### - service: set_button