From e60530fb302ab688721b3e85b2b0733ab477dc6a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 28 Dec 2021 21:19:45 +0100 Subject: [PATCH] Deprecate HTU21D(F) Sensor (ADR-0019) (#62956) --- homeassistant/components/htu21d/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/htu21d/sensor.py b/homeassistant/components/htu21d/sensor.py index 6c3844d6657..2385521a795 100644 --- a/homeassistant/components/htu21d/sensor.py +++ b/homeassistant/components/htu21d/sensor.py @@ -54,6 +54,13 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the HTU21D sensor.""" + _LOGGER.warning( + "The HTU21D(F) 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.get(CONF_NAME) bus_number = config.get(CONF_I2C_BUS)