mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Remove vg argument from miele auth flow (#148541)
This commit is contained in:
parent
c37b0a8f1d
commit
a00f61f7be
@ -26,14 +26,6 @@ class OAuth2FlowHandler(
|
|||||||
"""Return logger."""
|
"""Return logger."""
|
||||||
return logging.getLogger(__name__)
|
return logging.getLogger(__name__)
|
||||||
|
|
||||||
@property
|
|
||||||
def extra_authorize_data(self) -> dict:
|
|
||||||
"""Extra data that needs to be appended to the authorize url."""
|
|
||||||
# "vg" is mandatory but the value doesn't seem to matter
|
|
||||||
return {
|
|
||||||
"vg": "sv-SE",
|
|
||||||
}
|
|
||||||
|
|
||||||
async def async_step_reauth(
|
async def async_step_reauth(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, entry_data: Mapping[str, Any]
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
|
@ -46,7 +46,6 @@ async def test_full_flow(
|
|||||||
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
||||||
f"&redirect_uri={REDIRECT_URL}"
|
f"&redirect_uri={REDIRECT_URL}"
|
||||||
f"&state={state}"
|
f"&state={state}"
|
||||||
"&vg=sv-SE"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
client = await hass_client_no_auth()
|
client = await hass_client_no_auth()
|
||||||
@ -118,7 +117,6 @@ async def test_flow_reauth_abort(
|
|||||||
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
||||||
f"&redirect_uri={REDIRECT_URL}"
|
f"&redirect_uri={REDIRECT_URL}"
|
||||||
f"&state={state}"
|
f"&state={state}"
|
||||||
"&vg=sv-SE"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
client = await hass_client_no_auth()
|
client = await hass_client_no_auth()
|
||||||
@ -187,7 +185,6 @@ async def test_flow_reconfigure_abort(
|
|||||||
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
||||||
f"&redirect_uri={REDIRECT_URL}"
|
f"&redirect_uri={REDIRECT_URL}"
|
||||||
f"&state={state}"
|
f"&state={state}"
|
||||||
"&vg=sv-SE"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
client = await hass_client_no_auth()
|
client = await hass_client_no_auth()
|
||||||
@ -247,7 +244,6 @@ async def test_zeroconf_flow(
|
|||||||
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
|
||||||
f"&redirect_uri={REDIRECT_URL}"
|
f"&redirect_uri={REDIRECT_URL}"
|
||||||
f"&state={state}"
|
f"&state={state}"
|
||||||
"&vg=sv-SE"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
client = await hass_client_no_auth()
|
client = await hass_client_no_auth()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user