mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Revert "[tests] Fail component test merge on conflicting duplicate IDs" (#16848)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
i2c_id: i2c_bus
|
||||
id: graphical_display_menu_ssd1306_i2c_display
|
||||
id: ssd1306_i2c_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${reset_pin}
|
||||
pages:
|
||||
@@ -11,12 +10,12 @@ display:
|
||||
|
||||
font:
|
||||
- file: "gfonts://Roboto"
|
||||
id: graphical_display_menu_roboto
|
||||
id: roboto
|
||||
size: 20
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
id: graphical_display_menu_test_number
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
@@ -32,13 +31,13 @@ select:
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: graphical_display_menu_test_switch
|
||||
id: test_switch
|
||||
optimistic: true
|
||||
|
||||
graphical_display_menu:
|
||||
id: test_graphical_display_menu
|
||||
display: graphical_display_menu_ssd1306_i2c_display
|
||||
font: graphical_display_menu_roboto
|
||||
display: ssd1306_i2c_display
|
||||
font: roboto
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
@@ -81,7 +80,7 @@ graphical_display_menu:
|
||||
lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: "Number"
|
||||
number: graphical_display_menu_test_number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
@@ -98,7 +97,7 @@ graphical_display_menu:
|
||||
- display_menu.hide: test_graphical_display_menu
|
||||
- type: switch
|
||||
text: "Switch"
|
||||
switch: graphical_display_menu_test_switch
|
||||
switch: test_switch
|
||||
on_text: "Bright"
|
||||
off_text: "Dark"
|
||||
immediate_edit: false
|
||||
|
||||
Reference in New Issue
Block a user