Home Assistant Unofficial Reference 2024.12.1
register.py
Go to the documentation of this file.
1 """Support for register Vulcan account."""
2 
3 from typing import Any
4 
5 from vulcan import Account, Keystore
6 
7 
8 async def register(token: str, symbol: str, pin: str) -> dict[str, Any]:
9  """Register integration and save credentials."""
10  keystore = await Keystore.create(device_model="Home Assistant")
11  account = await Account.register(keystore, token, symbol, pin)
12  return {"account": account, "keystore": keystore}
dict[str, Any] register(str token, str symbol, str pin)
Definition: register.py:8