Deprecate Enviro pHAT (ADR-0019) (#63509)

pull/62526/head
Franck Nijhof 2022-01-05 23:34:57 +01:00 committed by GitHub
parent 7b79a0a086
commit 2af50b831b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -143,6 +143,13 @@ def setup_platform(
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the Sense HAT sensor platform."""
_LOGGER.warning(
"The Enviro pHAT 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"
)
try:
envirophat = importlib.import_module("envirophat")
except OSError: