diff --git a/homeassistant/components/bme280/__init__.py b/homeassistant/components/bme280/__init__.py index eca9ac85bc9..591cecdaffe 100644 --- a/homeassistant/components/bme280/__init__.py +++ b/homeassistant/components/bme280/__init__.py @@ -1,4 +1,6 @@ """The bme280 component.""" +import logging + import voluptuous as vol from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN @@ -84,9 +86,19 @@ CONFIG_SCHEMA = vol.Schema( extra=vol.ALLOW_EXTRA, ) +_LOGGER = logging.getLogger(__name__) + async def async_setup(hass, config): """Set up BME280 component.""" + _LOGGER.warning( + "The Bosch BME280 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" + ) + bme280_config = config[DOMAIN] for bme280_conf in bme280_config: discovery_info = {SENSOR_DOMAIN: bme280_conf}