Lint
This commit is contained in:
@@ -121,7 +121,7 @@ script:
|
||||
call.perform();
|
||||
}
|
||||
|
||||
- id: !extend global_settings
|
||||
- id: !extend init_hardware_climate
|
||||
then:
|
||||
- lambda: |-
|
||||
id(addon_climate_friendly_name) = embedded_climate_friendly_name;
|
||||
|
||||
@@ -340,6 +340,12 @@ api:
|
||||
embedded_climate_friendly_name: string # Friendly name for the climate control feature.
|
||||
embedded_indoor_temperature: bool # Enables indoor temperature display.
|
||||
then:
|
||||
- script.execute:
|
||||
id: init_hardware_climate
|
||||
embedded_climate: !lambda return embedded_climate;
|
||||
embedded_climate_friendly_name: !lambda return embedded_climate_friendly_name;
|
||||
embedded_indoor_temperature: !lambda return embedded_indoor_temperature;
|
||||
|
||||
- lambda: |-
|
||||
if (not id(is_uploading_tft)) {
|
||||
using namespace nspanel_ha_blueprint;
|
||||
@@ -387,16 +393,8 @@ api:
|
||||
|
||||
// Refresh buttons bars display
|
||||
refresh_hardware_buttons_bars->execute();
|
||||
|
||||
// Embedded thermostat
|
||||
id(is_embedded_thermostat) = embedded_climate;
|
||||
|
||||
// Indoor temperature
|
||||
id(embedded_indoor_temp) = embedded_indoor_temperature;
|
||||
display_embedded_temp->execute();
|
||||
}
|
||||
blueprint_status->publish_state(int(blueprint_status->raw_state) | (1 << 4));
|
||||
|
||||
# Sets up the "Home" page in ESPHome with customized settings and UI elements as defined in the project blueprint.
|
||||
- service: init_page_home
|
||||
variables:
|
||||
@@ -1977,6 +1975,21 @@ script:
|
||||
}
|
||||
}
|
||||
|
||||
- id: init_hardware_climate
|
||||
mode: restart
|
||||
parameters:
|
||||
embedded_climate: bool # Indicates if climate control is integrated.
|
||||
embedded_climate_friendly_name: string # Friendly name for the climate control feature.
|
||||
embedded_indoor_temperature: bool # Enables indoor temperature display.
|
||||
then:
|
||||
- lambda: |-
|
||||
// Embedded thermostat
|
||||
id(is_embedded_thermostat) = embedded_climate;
|
||||
|
||||
// Indoor temperature
|
||||
id(embedded_indoor_temp) = embedded_indoor_temperature;
|
||||
display_embedded_temp->execute();
|
||||
|
||||
- id: notification_clear
|
||||
mode: restart
|
||||
then:
|
||||
@@ -2682,6 +2695,7 @@ script:
|
||||
global_settings->stop();
|
||||
ha_button->stop();
|
||||
ha_call_service->stop();
|
||||
init_hardware_climate->stop();
|
||||
notification_clear->stop();
|
||||
page_alarm->stop();
|
||||
page_blank->stop();
|
||||
|
||||
Reference in New Issue
Block a user