From e8c972c55d18dd941e4839b3ef713ae0b78c4e6e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 21 Dec 2021 17:13:53 +0100 Subject: [PATCH] Deprecate Sensirion SHT31 integration (ADR-0019) (#62496) --- homeassistant/components/sht31/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/sht31/sensor.py b/homeassistant/components/sht31/sensor.py index ff8c5251ca7..f91779906d1 100644 --- a/homeassistant/components/sht31/sensor.py +++ b/homeassistant/components/sht31/sensor.py @@ -84,6 +84,13 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the sensor platform.""" + _LOGGER.warning( + "The Sensirion SHT31 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] monitored_conditions = config[CONF_MONITORED_CONDITIONS] i2c_address = config[CONF_I2C_ADDRESS]