mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 00:49:37 +00:00
Mark auth voluptuous schema fields as required (#57003)
This commit is contained in:
@@ -38,12 +38,12 @@ class InsecureExampleModule(MultiFactorAuthModule):
|
||||
@property
|
||||
def input_schema(self) -> vol.Schema:
|
||||
"""Validate login flow input data."""
|
||||
return vol.Schema({"pin": str})
|
||||
return vol.Schema({vol.Required("pin"): str})
|
||||
|
||||
@property
|
||||
def setup_schema(self) -> vol.Schema:
|
||||
"""Validate async_setup_user input data."""
|
||||
return vol.Schema({"pin": str})
|
||||
return vol.Schema({vol.Required("pin"): str})
|
||||
|
||||
async def async_setup_flow(self, user_id: str) -> SetupFlow:
|
||||
"""Return a data entry flow handler for setup module.
|
||||
|
||||
Reference in New Issue
Block a user