Skip to content

Commit

Permalink
fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Dec 22, 2024
1 parent 0fabe2e commit 737669f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions custom_components/state_webhook/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,36 +114,36 @@ async def validate_webhook(handler: SchemaCommonFlowHandler, user_input: dict[st


CONFIG_FLOW = {
Step.USER: SchemaFlowFormStep(
str(Step.USER): SchemaFlowFormStep(
WEBHOOK_SCHEMA,
next_step=Step.FILTER,
validate_user_input=validate_webhook,
),
Step.FILTER: SchemaFlowFormStep(
str(Step.FILTER): SchemaFlowFormStep(
FILTER_SCHEMA,
next_step=Step.PAYLOAD,
),
Step.PAYLOAD: SchemaFlowFormStep(
str(Step.PAYLOAD): SchemaFlowFormStep(
PAYLOAD_SCHEMA,
),
}

OPTIONS_FLOW = {
Step.INIT: SchemaFlowMenuStep(
str(Step.INIT): SchemaFlowMenuStep(
options={
Step.WEBHOOK,
Step.FILTER,
Step.PAYLOAD,
},
),
Step.WEBHOOK: SchemaFlowFormStep(
str(Step.WEBHOOK): SchemaFlowFormStep(
WEBHOOK_OPTIONS_SCHEMA,
validate_user_input=validate_webhook,
),
Step.FILTER: SchemaFlowFormStep(
str(Step.FILTER): SchemaFlowFormStep(
FILTER_SCHEMA,
),
Step.PAYLOAD: SchemaFlowFormStep(
str(Step.PAYLOAD): SchemaFlowFormStep(
PAYLOAD_SCHEMA,
),
}
Expand Down

0 comments on commit 737669f

Please sign in to comment.