def webhook_flow_conf(opp):
    """Register a handler."""
    with patch.dict(config_entries.HANDLERS):
        config_entry_flow.register_webhook_flow("test_single", "Test Single",
                                                {}, False)
        config_entry_flow.register_webhook_flow("test_multiple",
                                                "Test Multiple", {}, True)
        yield {}
Beispiel #2
0
"""Config flow for DialogFlow."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Dialogflow Webhook",
    {
        "dialogflow_url": "https://dialogflow.com/docs/fulfillment#webhook",
        "docs_url": "https://www.openpeerpower.io/integrations/dialogflow/",
    },
)
Beispiel #3
0
"""Config flow for IFTTT."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "IFTTT Webhook",
    {
        "applet_url": "https://ifttt.com/maker_webhooks",
        "docs_url": "https://www.openpeerpower.io/integrations/ifttt/",
    },
)
Beispiel #4
0
"""Config flow for Twilio."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Twilio Webhook",
    {
        "twilio_url": "https://www.twilio.com/docs/glossary/what-is-a-webhook",
        "docs_url": "https://www.openpeerpower.io/integrations/twilio/",
    },
)
Beispiel #5
0
"""Config flow for Traccar."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Traccar Webhook",
    {"docs_url": "https://www.openpeerpower.io/integrations/traccar/"},
)
Beispiel #6
0
"""Config flow for Mailgun."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Mailgun Webhook",
    {
        "mailgun_url":
        "https://documentation.mailgun.com/en/latest/user_manual.html#webhooks",
        "docs_url": "https://www.openpeerpower.io/integrations/mailgun/",
    },
)
Beispiel #7
0
"""Config flow for Geofency."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Geofency Webhook",
    {"docs_url": "https://www.openpeerpower.io/integrations/geofency/"},
)
Beispiel #8
0
"""Config flow for Locative."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "Locative Webhook",
    {"docs_url": "https://www.openpeerpower.io/integrations/locative/"},
)
Beispiel #9
0
"""Config flow for GPSLogger."""
from openpeerpower.helpers import config_entry_flow

from .const import DOMAIN

config_entry_flow.register_webhook_flow(
    DOMAIN,
    "GPSLogger Webhook",
    {"docs_url": "https://www.openpeerpower.io/integrations/gpslogger/"},
)