Deprecate Piglow (ADR-0019) (#63505)
This commit is contained in:
parent
8c67963991
commit
24ae379fad
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue