mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
[bme680_bsec] [bme68x_bsec2] Mark the two BSEC variants as mutually exclusive
\`bme680_bsec\` pulls in the BSEC v1 library (single-instance API: \`bsec_init\`, \`bsec_set_configuration\`, …) and \`bme68x_bsec2\` pulls in the BSEC v2 library (multi-instance API: \`bsec_init_m\`, \`bsec_set_configuration_m\`, …). The two libraries export different symbol sets and can't coexist in one firmware image — linking them together currently fails with undefined references to the \`*_m\` symbols. This manifests in CI when the test-component grouping logic merges \`bme680_bsec\` and \`bme68x_bsec2_i2c\` into a single build. Declare \`CONFLICTS_WITH\` on both components so the config validator rejects the combination at config time with a clear message instead of leaving users to decode a linker failure.
This commit is contained in:
@@ -6,6 +6,7 @@ from esphome.const import CONF_ID, CONF_SAMPLE_RATE, CONF_TEMPERATURE_OFFSET, Fr
|
||||
CODEOWNERS = ["@trvrnrth"]
|
||||
DEPENDENCIES = ["i2c"]
|
||||
AUTO_LOAD = ["sensor", "text_sensor"]
|
||||
CONFLICTS_WITH = ["bme68x_bsec2"]
|
||||
MULTI_CONF = True
|
||||
|
||||
CONF_BME680_BSEC_ID = "bme680_bsec_id"
|
||||
|
||||
@@ -13,6 +13,7 @@ from esphome.const import (
|
||||
)
|
||||
|
||||
CODEOWNERS = ["@neffs", "@kbx81"]
|
||||
CONFLICTS_WITH = ["bme680_bsec"]
|
||||
|
||||
DOMAIN = "bme68x_bsec2"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user