Skip to content

Commit

Permalink
Fix POST schema for /auth/login_flow
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Mar 7, 2024
1 parent 0173fc4 commit dfae64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/auth/login_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async def get(self, request: web.Request) -> web.Response:
{
vol.Required("client_id"): str,
vol.Required("handler"): vol.All(
[str], vol.Length(2, 2), vol.Coerce(tuple)
[vol.Any(str, None)], vol.Length(2, 2), vol.Coerce(tuple)
),
vol.Required("redirect_uri"): str,
vol.Optional("type", default="authorize"): str,
Expand Down

0 comments on commit dfae64a

Please sign in to comment.