Set webhook local_only deprecation to 2023.11.0 (#95401)

This commit is contained in:
Eric Severance 2023-06-27 11:43:11 -07:00 committed by GitHub
parent 34827571ba
commit a4a6972237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ async def async_handle_webhook(
_LOGGER.warning( _LOGGER.warning(
"Deprecation warning: " "Deprecation warning: "
"Webhook '%s' does not provide a value for local_only. " "Webhook '%s' does not provide a value for local_only. "
"This webhook will be blocked after the 2023.7.0 release. " "This webhook will be blocked after the 2023.11.0 release. "
"Use `local_only: false` to keep this webhook operating as-is", "Use `local_only: false` to keep this webhook operating as-is",
webhook_id, webhook_id,
) )

View File

@ -98,7 +98,7 @@ async def async_attach_trigger(
hass, hass,
DOMAIN, DOMAIN,
issue_id, issue_id,
breaks_in_ha_version="2023.7.0", breaks_in_ha_version="2023.11.0",
is_fixable=False, is_fixable=False,
severity=IssueSeverity.WARNING, severity=IssueSeverity.WARNING,
learn_more_url="https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger", learn_more_url="https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger",

View File

@ -137,7 +137,7 @@ async def test_webhook_allowed_methods_internet(
"platform": "webhook", "platform": "webhook",
"webhook_id": "post_webhook", "webhook_id": "post_webhook",
"allowed_methods": "PUT", "allowed_methods": "PUT",
# Enable after 2023.4.0: "local_only": False, # Enable after 2023.11.0: "local_only": False,
}, },
"action": { "action": {
"event": "test_success", "event": "test_success",