Deprecate Raspberry Pi RF (ADR-0019) (#63501)

This commit is contained in:
Franck Nijhof 2022-01-05 19:38:43 +01:00 committed by GitHub
parent 640e625c2c
commit da1d74feb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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