From eb292fbfbd15d4b33bef73004828c57432cb3d55 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 21 Dec 2021 17:53:42 +0100 Subject: [PATCH] Deprecate BeagleBone Black GPIO integration (ADR-0019) (#62492) --- homeassistant/components/bbb_gpio/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/components/bbb_gpio/__init__.py b/homeassistant/components/bbb_gpio/__init__.py index f7d146e073e..9cc94de0910 100644 --- a/homeassistant/components/bbb_gpio/__init__.py +++ b/homeassistant/components/bbb_gpio/__init__.py @@ -1,13 +1,23 @@ """Support for controlling GPIO pins of a Beaglebone Black.""" +import logging + from Adafruit_BBIO import GPIO # pylint: disable=import-error from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP DOMAIN = "bbb_gpio" +_LOGGER = logging.getLogger(__name__) + def setup(hass, config): """Set up the BeagleBone Black GPIO component.""" + _LOGGER.warning( + "The BeagleBone Black GPIO 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" + ) def cleanup_gpio(event): """Stuff to do before stopping."""