From 24ae379fadb7fad8ee657c9e6e46bf910ba94caa Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 23:36:02 +0100 Subject: [PATCH] Deprecate Piglow (ADR-0019) (#63505) --- homeassistant/components/piglow/light.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/piglow/light.py b/homeassistant/components/piglow/light.py index cf26c122bc7..f66121ec413 100644 --- a/homeassistant/components/piglow/light.py +++ b/homeassistant/components/piglow/light.py @@ -40,6 +40,13 @@ def setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Set up the Piglow Light platform.""" + _LOGGER.warning( + "The Piglow 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" + ) + if subprocess.getoutput("i2cdetect -q -y 1 | grep -o 54") != "54": _LOGGER.error("A Piglow device was not found") return