From 274955f492934702151adef85b262dde9d1f6f33 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 23:35:12 +0100 Subject: [PATCH] Deprecate Blinkt! (ADR-0019) (#63510) --- homeassistant/components/blinkt/light.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/components/blinkt/light.py b/homeassistant/components/blinkt/light.py index 3b1cf2547d5..5b720e13697 100644 --- a/homeassistant/components/blinkt/light.py +++ b/homeassistant/components/blinkt/light.py @@ -2,6 +2,7 @@ from __future__ import annotations import importlib +import logging import voluptuous as vol @@ -28,6 +29,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( {vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string} ) +_LOGGER = logging.getLogger(__name__) + def setup_platform( hass: HomeAssistant, @@ -36,6 +39,13 @@ def setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Set up the Blinkt Light platform.""" + _LOGGER.warning( + "The Blinkt! 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" + ) + blinkt = importlib.import_module("blinkt") # ensure that the lights are off when exiting