From b21505aa435598c707bed88a559d0fd4bf7a7cce Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 28 Dec 2021 15:24:48 +0100 Subject: [PATCH] Deprecate Bosch BME680 Environmental Sensor (ADR-0019) (#62936) --- homeassistant/components/bme680/sensor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/bme680/sensor.py b/homeassistant/components/bme680/sensor.py index 84a1b613a23..d4117321504 100644 --- a/homeassistant/components/bme680/sensor.py +++ b/homeassistant/components/bme680/sensor.py @@ -137,6 +137,14 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the BME680 sensor.""" + _LOGGER.warning( + "The Bosch BME680 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" + ) + name = config[CONF_NAME] sensor_handler = await hass.async_add_executor_job(_setup_bme680, config)