Migrate CONF_WEBHOOK_ID to homeassistant.const#17460
Migrate CONF_WEBHOOK_ID to homeassistant.const#17460balloob merged 5 commits intohome-assistant:devfrom
Conversation
|
You can do it in this PR, would be faster than waiting for two round of CI to pass. |
|
Great, should be ready to go then! |
| result = { | ||
| 'platform': 'webhook', | ||
| 'webhook_id': webhook_id, | ||
| CONF_WEBHOOK_ID: webhook_id, |
There was a problem hiding this comment.
This better keep it as string literal, since it is not part of configuration.
|
I don't think we should change the |
That was one of the things I was also concerned about. Is it acceptable to create a new constant under the Something like this: |
|
No. Just leave the automation as-is. Let's not start aliasing constants. |
Description:
CONF_WEBHOOK_ID = 'webhook_id'is currently defined in the webhook automation as well as the ifttt component. As part of #15376, I was going to add it to the mailgun component as well (and it will likely be needed in other components as well as they migrate to use the new webhooks). I think it makes more sense to be be a part of thehomeassistant.constpackage since it is shared.Checklist:
tox. Your PR cannot be merged unless tests pass