Deprecate Media Player Classic Home Cinema (ADR-0004) (#63598)

This commit is contained in:
Franck Nijhof 2022-01-08 13:41:22 +01:00 committed by GitHub
parent 9e4e43cf77
commit 80a4ec82b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,14 @@ def setup_platform(
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the MPC-HC platform."""
_LOGGER.warning(
"The Media Player Classic Home Cinema integration is now deprecated "
"and will be removed in Home Assistant Core 2022.4; "
"this integration is removed under Architectural Decision Record 0004, "
"more information can be found here: "
"https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md"
)
name = config.get(CONF_NAME)
host = config.get(CONF_HOST)
port = config.get(CONF_PORT)