Deprecate Blinkt! (ADR-0019) (#63510)

This commit is contained in:
Franck Nijhof 2022-01-05 23:35:12 +01:00 committed by GitHub
parent 2af50b831b
commit 274955f492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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