From cdc3dcc1e6ef770a2bf61a1dd272f75796f97f19 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 21 Dec 2021 17:16:21 +0100 Subject: [PATCH] Deprecate DHT Sensor integration (ADR-0019) (#62495) --- homeassistant/components/dht/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/dht/sensor.py b/homeassistant/components/dht/sensor.py index 0b9248a44e8..27bf7baefc2 100644 --- a/homeassistant/components/dht/sensor.py +++ b/homeassistant/components/dht/sensor.py @@ -87,6 +87,13 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the DHT sensor.""" + _LOGGER.warning( + "The DHT 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" + ) + available_sensors = { "AM2302": adafruit_dht.DHT22, "DHT11": adafruit_dht.DHT11,