From 5db1dd2e410fd056ba5bff4ee4da46f506cc12e4 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 14 Jan 2022 14:03:31 +0100 Subject: [PATCH] Deprecate Raspihats (ADR-0019) (#64113) Co-authored-by: epenet --- homeassistant/components/raspihats/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/raspihats/__init__.py b/homeassistant/components/raspihats/__init__.py index 08626c84439..6304c39cc1b 100644 --- a/homeassistant/components/raspihats/__init__.py +++ b/homeassistant/components/raspihats/__init__.py @@ -33,6 +33,13 @@ I2C_HATS_MANAGER = "I2CH_MNG" def setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up the raspihats component.""" + _LOGGER.warning( + "The Raspihats 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" + ) + hass.data[I2C_HATS_MANAGER] = I2CHatsManager() def start_i2c_hats_keep_alive(event):