Deprecate Bosch BMP280 Environmental Sensor (ADR-0019) (#62937)

This commit is contained in:
Franck Nijhof 2021-12-28 15:37:48 +01:00 committed by GitHub
parent b21505aa43
commit 980d6c9563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,14 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None): def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the sensor platform.""" """Set up the sensor platform."""
_LOGGER.warning(
"The Bosch BMP280 Environmental Sensor integration is deprecated and "
"will be removed in Home Assistant Core 2022.4; "
"this integration is removed under Architectural Decision Record 0019, "
"more information can be found here: "
"https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md"
)
try: try:
# initializing I2C bus using the auto-detected pins # initializing I2C bus using the auto-detected pins
i2c = I2C(board.SCL, board.SDA) i2c = I2C(board.SCL, board.SDA)