From da1d74feb84f1e6a8db68a91f4cf607c371e7858 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 19:38:43 +0100 Subject: [PATCH] Deprecate Raspberry Pi RF (ADR-0019) (#63501) --- homeassistant/components/rpi_rf/switch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/rpi_rf/switch.py b/homeassistant/components/rpi_rf/switch.py index 101edddee7d..e82b2cb12b1 100644 --- a/homeassistant/components/rpi_rf/switch.py +++ b/homeassistant/components/rpi_rf/switch.py @@ -57,6 +57,12 @@ def setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Find and return switches controlled by a generic RF device via GPIO.""" + _LOGGER.warning( + "The Raspberry Pi RF 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" + ) rpi_rf = importlib.import_module("rpi_rf") gpio = config[CONF_GPIO]