mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Deprecate Sensirion SHT31 integration (ADR-0019) (#62496)
This commit is contained in:
parent
48b3d6e1c0
commit
e8c972c55d
@ -84,6 +84,13 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the sensor platform."""
|
"""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]
|
name = config[CONF_NAME]
|
||||||
monitored_conditions = config[CONF_MONITORED_CONDITIONS]
|
monitored_conditions = config[CONF_MONITORED_CONDITIONS]
|
||||||
i2c_address = config[CONF_I2C_ADDRESS]
|
i2c_address = config[CONF_I2C_ADDRESS]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user