Deprecate Piglow (ADR-0019) (#63505)

This commit is contained in:
Franck Nijhof 2022-01-05 23:36:02 +01:00 committed by GitHub
parent 8c67963991
commit 24ae379fad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,13 @@ def setup_platform(
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the Piglow Light platform."""
_LOGGER.warning(
"The Piglow 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"
)
if subprocess.getoutput("i2cdetect -q -y 1 | grep -o 54") != "54":
_LOGGER.error("A Piglow device was not found")
return