mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 07:47:08 +00:00
Deprecate Piglow (ADR-0019) (#63505)
This commit is contained in:
parent
8c67963991
commit
24ae379fad
@ -40,6 +40,13 @@ def setup_platform(
|
|||||||
discovery_info: DiscoveryInfoType | None = None,
|
discovery_info: DiscoveryInfoType | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the Piglow Light platform."""
|
"""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":
|
if subprocess.getoutput("i2cdetect -q -y 1 | grep -o 54") != "54":
|
||||||
_LOGGER.error("A Piglow device was not found")
|
_LOGGER.error("A Piglow device was not found")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user