From 2af50b831b917e37586dad6512b0fb2e868e60f0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 23:34:57 +0100 Subject: [PATCH] Deprecate Enviro pHAT (ADR-0019) (#63509) --- homeassistant/components/envirophat/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/envirophat/sensor.py b/homeassistant/components/envirophat/sensor.py index 8c37a11123c..0b8634d019d 100644 --- a/homeassistant/components/envirophat/sensor.py +++ b/homeassistant/components/envirophat/sensor.py @@ -143,6 +143,13 @@ def setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Set up the Sense HAT sensor platform.""" + _LOGGER.warning( + "The Enviro pHAT 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: envirophat = importlib.import_module("envirophat") except OSError: