diff --git a/homeassistant/components/apns/notify.py b/homeassistant/components/apns/notify.py index ce4b83cdd70..4cc13a3057f 100644 --- a/homeassistant/components/apns/notify.py +++ b/homeassistant/components/apns/notify.py @@ -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]