1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-29 15:43:55 +00:00

Add typing

This commit is contained in:
Franck Nijhof
2022-12-21 11:03:07 +01:00
parent 1a992f1d2a
commit af1fc922c6

View File

@@ -1349,7 +1349,9 @@ def raise_contains_mocks(val):
raise_contains_mocks(dict_value)
async def create_hass_access_token(hass, user, credential):
async def create_hass_access_token(
hass: HomeAssistant, user: auth_models.User, credential: auth_models.Credentials
) -> str:
"""Return an access token to access Home Assistant."""
await hass.auth.async_link_user(user, credential)