From 980d6c956360bfe8b14a23cd7b676ad0747d1e23 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 28 Dec 2021 15:37:48 +0100 Subject: [PATCH] Deprecate Bosch BMP280 Environmental Sensor (ADR-0019) (#62937) --- homeassistant/components/bmp280/sensor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/bmp280/sensor.py b/homeassistant/components/bmp280/sensor.py index 3721bffaf68..6a9a3a9147b 100644 --- a/homeassistant/components/bmp280/sensor.py +++ b/homeassistant/components/bmp280/sensor.py @@ -41,6 +41,14 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( def setup_platform(hass, config, add_entities, discovery_info=None): """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: # initializing I2C bus using the auto-detected pins i2c = I2C(board.SCL, board.SDA)