mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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}
|
{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):
|
def get_service(hass, config, discovery_info=None):
|
||||||
"""Return push service."""
|
"""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]
|
name = config[CONF_NAME]
|
||||||
cert_file = config[CONF_CERTFILE]
|
cert_file = config[CONF_CERTFILE]
|
||||||
topic = config[CONF_TOPIC]
|
topic = config[CONF_TOPIC]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user