mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Deprecate DHT Sensor integration (ADR-0019) (#62495)
This commit is contained in:
parent
e8c972c55d
commit
cdc3dcc1e6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user