INNER CODE UNIT · Python
create_account
arnonym/ha-plugins · ha-sip/src/account.py:197
def create_account(
end_point: pj.Endpoint,
config: MyAccountConfig,
command_handler: CommandHandler,
event_sender: EventSender,
ha_config: ha.HaConfig,
on_reg_state_callback: OnRegStateCallback,
is_default: bool,
) -> Account:
account = Account(end_point, config, command_handler, event_sender, ha_config, is_default, on_reg_state_callback)
account.init()
return account