Deprecate DHT Sensor integration (ADR-0019) (#62495)

This commit is contained in:
Franck Nijhof 2021-12-21 17:16:21 +01:00 committed by GitHub
parent e8c972c55d
commit cdc3dcc1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,