Deprecate pi4ioe5v9xxxx integration (ADR-0019) (#62491)

This commit is contained in:
Franck Nijhof 2021-12-21 17:23:02 +01:00 committed by GitHub
parent 6151bbe5c8
commit 0e9282a404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -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 = []

View File

@ -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 = []