Convert getting and removing access tokens to normal functions (#108670)

This commit is contained in:
J. Nick Koston 2024-01-22 20:51:33 -10:00 committed by GitHub
parent 904032e944
commit 2eea658fd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 98 additions and 124 deletions

View file

@ -136,7 +136,7 @@ async def test_delete_unable_self_account(
) -> None:
"""Test we cannot delete our own account."""
client = await hass_ws_client(hass, hass_access_token)
refresh_token = await hass.auth.async_validate_access_token(hass_access_token)
refresh_token = hass.auth.async_validate_access_token(hass_access_token)
await client.send_json(
{"id": 5, "type": auth_config.WS_TYPE_DELETE, "user_id": refresh_token.user.id}