Deprecate Apple Push Notification Service (APNS) (#64629)

This commit is contained in:
Franck Nijhof 2022-01-21 17:23:02 +01:00 committed by GitHub
parent 30e0a93fb3
commit f667333dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,16 @@ REGISTER_SERVICE_SCHEMA = vol.Schema(
{vol.Required(ATTR_PUSH_ID): cv.string, vol.Optional(ATTR_NAME): cv.string}
)
_LOGGER = logging.getLogger(__name__)
def get_service(hass, config, discovery_info=None):
"""Return push service."""
_LOGGER.warning(
"The Apple Push Notification Service (APNS) integration is deprecated "
"and will be removed in Home Assistant Core 2022.4"
)
name = config[CONF_NAME]
cert_file = config[CONF_CERTFILE]
topic = config[CONF_TOPIC]