Fix other references to gang_count_plural_suffix
This commit is contained in:
@@ -209,10 +209,11 @@ script:
|
|||||||
- id: !extend dump_config
|
- id: !extend dump_config
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
std:string gang_count_plural_suffix = id(gang_count) > 1 ? "s" : "";
|
||||||
// Button's actions
|
// Button's actions
|
||||||
ESP_LOGCONFIG("core_hw_buttons", "Button%s action%s:",
|
ESP_LOGCONFIG("core_hw_buttons", "Button%s action%s:",
|
||||||
id(gang_count_plural_suffix).c_str(),
|
gang_count_plural_suffix.c_str(),
|
||||||
id(gang_count_plural_suffix).c_str());
|
gang_count_plural_suffix.c_str());
|
||||||
ESP_LOGCONFIG("core_hw_buttons", " Relay 1: %s", sl_button_1_action->has_state()
|
ESP_LOGCONFIG("core_hw_buttons", " Relay 1: %s", sl_button_1_action->has_state()
|
||||||
? sl_button_1_action->state.c_str()
|
? sl_button_1_action->state.c_str()
|
||||||
: "Unknown");
|
: "Unknown");
|
||||||
|
|||||||
@@ -448,10 +448,11 @@ script:
|
|||||||
- id: !extend dump_config
|
- id: !extend dump_config
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
std:string gang_count_plural_suffix = id(gang_count) > 1 ? "s" : "";
|
||||||
// Relay's LEDs modes
|
// Relay's LEDs modes
|
||||||
ESP_LOGCONFIG("core_hw_leds", "Relay%s LEDs mode%s:",
|
ESP_LOGCONFIG("core_hw_leds", "Relay%s LEDs mode%s:",
|
||||||
id(gang_count_plural_suffix).c_str(),
|
gang_count_plural_suffix.c_str(),
|
||||||
id(gang_count_plural_suffix).c_str());
|
gang_count_plural_suffix.c_str());
|
||||||
ESP_LOGCONFIG("core_hw_leds", " Relay 1: %s", id(is_us_model)
|
ESP_LOGCONFIG("core_hw_leds", " Relay 1: %s", id(is_us_model)
|
||||||
? sl_relay_1_light_mode_us->state.c_str()
|
? sl_relay_1_light_mode_us->state.c_str()
|
||||||
: sl_relay_1_light_mode_eu->state.c_str());
|
: sl_relay_1_light_mode_eu->state.c_str());
|
||||||
|
|||||||
@@ -703,10 +703,11 @@ script:
|
|||||||
- id: !extend dump_config
|
- id: !extend dump_config
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
std:string gang_count_plural_suffix = id(gang_count) > 1 ? "s" : "";
|
||||||
// Relay's modes
|
// Relay's modes
|
||||||
ESP_LOGCONFIG("standard_hw_relays", "Relay%s mode%s:",
|
ESP_LOGCONFIG("standard_hw_relays", "Relay%s mode%s:",
|
||||||
id(gang_count_plural_suffix).c_str(),
|
gang_count_plural_suffix.c_str(),
|
||||||
id(gang_count_plural_suffix).c_str());
|
gang_count_plural_suffix.c_str());
|
||||||
ESP_LOGCONFIG("standard_hw_relays", " Relay 1: %s", sl_relay_1_mode->has_state()
|
ESP_LOGCONFIG("standard_hw_relays", " Relay 1: %s", sl_relay_1_mode->has_state()
|
||||||
? sl_relay_1_mode->state.c_str()
|
? sl_relay_1_mode->state.c_str()
|
||||||
: "Unknown");
|
: "Unknown");
|
||||||
@@ -725,8 +726,8 @@ script:
|
|||||||
|
|
||||||
// Relay's states
|
// Relay's states
|
||||||
ESP_LOGCONFIG("standard_hw_relays", "Relay%s state%s:",
|
ESP_LOGCONFIG("standard_hw_relays", "Relay%s state%s:",
|
||||||
id(gang_count_plural_suffix).c_str(),
|
gang_count_plural_suffix.c_str(),
|
||||||
id(gang_count_plural_suffix).c_str());
|
gang_count_plural_suffix.c_str());
|
||||||
ESP_LOGCONFIG("standard_hw_relays", " Relay 1: %s", sw_relay_1->state ? "ON" : "OFF");
|
ESP_LOGCONFIG("standard_hw_relays", " Relay 1: %s", sw_relay_1->state ? "ON" : "OFF");
|
||||||
if (id(gang_count) >= 2)
|
if (id(gang_count) >= 2)
|
||||||
ESP_LOGCONFIG("standard_hw_relays", " Relay 2: %s", sw_relay_2->state ? "ON" : "OFF");
|
ESP_LOGCONFIG("standard_hw_relays", " Relay 2: %s", sw_relay_2->state ? "ON" : "OFF");
|
||||||
|
|||||||
Reference in New Issue
Block a user