1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 23:03:46 +01:00

fix more isolation

This commit is contained in:
J. Nick Koston
2025-10-09 15:26:26 -10:00
parent 2c8a6db2c5
commit e8051533ec
6 changed files with 16 additions and 4 deletions

View File

@@ -68,6 +68,7 @@ ISOLATED_COMPONENTS = {
"esp32_camera": "Leaks config into other components", "esp32_camera": "Leaks config into other components",
"esp32_camera_web_server": "Leaks config into other components", "esp32_camera_web_server": "Leaks config into other components",
"esphome": "Defines devices/areas in esphome: section that are referenced in other sections - breaks when merged", "esphome": "Defines devices/areas in esphome: section that are referenced in other sections - breaks when merged",
"ethernet": "Defines ethernet: which conflicts with wifi: used by most components",
"lvgl": "Defines multiple SDL displays on host platform that conflict when merged with other display configs", "lvgl": "Defines multiple SDL displays on host platform that conflict when merged with other display configs",
"matrix_keypad": "Needs isolation due to keypad", "matrix_keypad": "Needs isolation due to keypad",
"mcp4725": "no YAML config to specify i2c bus id", "mcp4725": "no YAML config to specify i2c bus id",
@@ -322,6 +323,11 @@ def analyze_all_components(
# Note: Components using $component_dir are now groupable because the merge # Note: Components using $component_dir are now groupable because the merge
# script rewrites these to absolute paths with component-specific substitutions # script rewrites these to absolute paths with component-specific substitutions
# Check if component is explicitly isolated
# These have known issues that prevent grouping with other components
if component_name in ISOLATED_COMPONENTS:
non_groupable.add(component_name)
# Check if component is a base bus component # Check if component is a base bus component
# These are platform implementations and must be tested separately # These are platform implementations and must be tested separately
if component_name in BASE_BUS_COMPONENTS: if component_name in BASE_BUS_COMPONENTS:

View File

@@ -1,5 +1,6 @@
sensor: sensor:
- platform: selec_meter - platform: selec_meter
modbus_id: modbus_bus
total_active_energy: total_active_energy:
name: SelecEM2M Total Active Energy name: SelecEM2M Total Active Energy
import_active_energy: import_active_energy:

View File

@@ -1,5 +1,7 @@
substitutions: substitutions:
flow_control_pin: GPIO10
packages: packages:
uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml modbus: !include ../../test_build_components/common/modbus/esp32-c3-idf.yaml
<<: !include common.yaml <<: !include common.yaml

View File

@@ -1,8 +1,9 @@
substitutions: substitutions:
tx_pin: GPIO4 tx_pin: GPIO4
rx_pin: GPIO5 rx_pin: GPIO5
flow_control_pin: GPIO26
packages: packages:
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml modbus: !include ../../test_build_components/common/modbus/esp32-idf.yaml
<<: !include common.yaml <<: !include common.yaml

View File

@@ -1,8 +1,9 @@
substitutions: substitutions:
tx_pin: GPIO0 tx_pin: GPIO0
rx_pin: GPIO2 rx_pin: GPIO2
flow_control_pin: GPIO4
packages: packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml modbus: !include ../../test_build_components/common/modbus/esp8266-ard.yaml
<<: !include common.yaml <<: !include common.yaml

View File

@@ -1,8 +1,9 @@
substitutions: substitutions:
tx_pin: GPIO4 tx_pin: GPIO4
rx_pin: GPIO5 rx_pin: GPIO5
flow_control_pin: GPIO6
packages: packages:
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml modbus: !include ../../test_build_components/common/modbus/rp2040-ard.yaml
<<: !include common.yaml <<: !include common.yaml