mirror of https://github.com/home-assistant/core
11 lines
371 B
Python
11 lines
371 B
Python
"""Support for register Vulcan account."""
|
|
|
|
from vulcan import Account, Keystore
|
|
|
|
|
|
async def register(hass, token, symbol, pin):
|
|
"""Register integration and save credentials."""
|
|
keystore = await Keystore.create(device_model="Home Assistant")
|
|
account = await Account.register(keystore, token, symbol, pin)
|
|
return {"account": account, "keystore": keystore}
|