mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Deprecate Apple Push Notification Service (APNS) (#64629)
This commit is contained in:
parent
30e0a93fb3
commit
f667333dea
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user