mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Deprecate pi4ioe5v9xxxx integration (ADR-0019) (#62491)
This commit is contained in:
parent
6151bbe5c8
commit
0e9282a404
@ -1,4 +1,6 @@
|
||||
"""Support for binary sensor using RPi GPIO."""
|
||||
import logging
|
||||
|
||||
from pi4ioe5v9xxxx import pi4ioe5v9xxxx
|
||||
import voluptuous as vol
|
||||
|
||||
@ -30,9 +32,18 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
}
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the IO expander devices."""
|
||||
_LOGGER.warning(
|
||||
"The pi4ioe5v9xxxx IO Expander 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"
|
||||
)
|
||||
|
||||
pins = config[CONF_PINS]
|
||||
binary_sensors = []
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
"""Allows to configure a switch using RPi GPIO."""
|
||||
import logging
|
||||
|
||||
from pi4ioe5v9xxxx import pi4ioe5v9xxxx
|
||||
import voluptuous as vol
|
||||
|
||||
@ -29,9 +31,18 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
}
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the swiches devices."""
|
||||
_LOGGER.warning(
|
||||
"The pi4ioe5v9xxxx IO Expander 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"
|
||||
)
|
||||
|
||||
pins = config.get(CONF_PINS)
|
||||
switches = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user