From 7b79a0a086491295cc104f4906615229c75c8453 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 23:34:48 +0100 Subject: [PATCH] Deprecate MH-Z19 CO2 Sensor (ADR-0019) (#63508) --- homeassistant/components/mhz19/sensor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/mhz19/sensor.py b/homeassistant/components/mhz19/sensor.py index fc665369ba2d..f9237fd2c5ba 100644 --- a/homeassistant/components/mhz19/sensor.py +++ b/homeassistant/components/mhz19/sensor.py @@ -70,6 +70,12 @@ def setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Set up the available CO2 sensors.""" + _LOGGER.warning( + "The MH-Z19 CO2 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" + ) try: co2sensor.read_mh_z19(config.get(CONF_SERIAL_DEVICE))