Deprecate BeagleBone Black GPIO integration (ADR-0019) (#62492)

This commit is contained in:
Franck Nijhof 2021-12-21 17:53:42 +01:00 committed by GitHub
parent 07e034c1c6
commit eb292fbfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""