# `HaAuth.HA.OneShot`
[🔗](https://github.com/drselump14/ha_auth/blob/v0.1.0/lib/ha_auth/ha/one_shot.ex#L1)

One websocket command to HA: connect, authenticate with `token`, send
`command`, return its result, close. For what HA only offers over the
websocket (`auth/current_user`, `config/auth/list`).

# `call`

```elixir
@spec call(String.t(), map()) :: {:ok, term()} | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
