Skip to content

Commit 3c2fa02

Browse files
astrandbfrenck
authored andcommitted
Remove vg argument from miele auth flow (home-assistant#148541)
1 parent 5cf5be8 commit 3c2fa02

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

homeassistant/components/miele/config_flow.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ def logger(self) -> logging.Logger:
2626
"""Return logger."""
2727
return logging.getLogger(__name__)
2828

29-
@property
30-
def extra_authorize_data(self) -> dict:
31-
"""Extra data that needs to be appended to the authorize url."""
32-
# "vg" is mandatory but the value doesn't seem to matter
33-
return {
34-
"vg": "sv-SE",
35-
}
36-
3729
async def async_step_reauth(
3830
self, entry_data: Mapping[str, Any]
3931
) -> ConfigFlowResult:

tests/components/miele/test_config_flow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ async def test_full_flow(
4646
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
4747
f"&redirect_uri={REDIRECT_URL}"
4848
f"&state={state}"
49-
"&vg=sv-SE"
5049
)
5150

5251
client = await hass_client_no_auth()
@@ -118,7 +117,6 @@ async def test_flow_reauth_abort(
118117
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
119118
f"&redirect_uri={REDIRECT_URL}"
120119
f"&state={state}"
121-
"&vg=sv-SE"
122120
)
123121

124122
client = await hass_client_no_auth()
@@ -187,7 +185,6 @@ async def test_flow_reconfigure_abort(
187185
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
188186
f"&redirect_uri={REDIRECT_URL}"
189187
f"&state={state}"
190-
"&vg=sv-SE"
191188
)
192189

193190
client = await hass_client_no_auth()
@@ -247,7 +244,6 @@ async def test_zeroconf_flow(
247244
f"{OAUTH2_AUTHORIZE}?response_type=code&client_id={CLIENT_ID}"
248245
f"&redirect_uri={REDIRECT_URL}"
249246
f"&state={state}"
250-
"&vg=sv-SE"
251247
)
252248

253249
client = await hass_client_no_auth()

0 commit comments

Comments
 (0)