Remove vg argument from miele auth flow (#148541)

This commit is contained in:
Åke Strandberg 2025-07-10 12:09:24 +02:00 committed by GitHub
parent c37b0a8f1d
commit a00f61f7be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -26,14 +26,6 @@ class OAuth2FlowHandler(
"""Return logger."""
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(
self, entry_data: Mapping[str, Any]
) -> ConfigFlowResult:

View File

@ -46,7 +46,6 @@ async def test_full_flow(
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
f"&redirect_uri={REDIRECT_URL}"
f"&state={state}"
"&vg=sv-SE"
)
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"&redirect_uri={REDIRECT_URL}"
f"&state={state}"
"&vg=sv-SE"
)
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"&redirect_uri={REDIRECT_URL}"
f"&state={state}"
"&vg=sv-SE"
)
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"&redirect_uri={REDIRECT_URL}"
f"&state={state}"
"&vg=sv-SE"
)
client = await hass_client_no_auth()