mirror of
https://github.com/thecode/ha-rpi_gpio.git
synced 2025-07-28 05:06:35 +00:00
Remove depreciation warning (#8)
This commit is contained in:
parent
2ec09b201a
commit
6b8a808460
@ -1,5 +1,4 @@
|
|||||||
"""Support for controlling GPIO pins of a Raspberry Pi."""
|
"""Support for controlling GPIO pins of a Raspberry Pi."""
|
||||||
import logging
|
|
||||||
|
|
||||||
from RPi import GPIO # pylint: disable=import-error
|
from RPi import GPIO # pylint: disable=import-error
|
||||||
|
|
||||||
@ -18,17 +17,9 @@ PLATFORMS = [
|
|||||||
Platform.SWITCH,
|
Platform.SWITCH,
|
||||||
]
|
]
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the Raspberry PI GPIO component."""
|
"""Set up the Raspberry PI GPIO component."""
|
||||||
_LOGGER.warning(
|
|
||||||
"The Raspberry Pi GPIO integration is deprecated and will be removed "
|
|
||||||
"in Home Assistant Core 2022.6; 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"
|
|
||||||
)
|
|
||||||
|
|
||||||
def cleanup_gpio(event):
|
def cleanup_gpio(event):
|
||||||
"""Stuff to do before stopping."""
|
"""Stuff to do before stopping."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user