# `Hassock.Label`
[🔗](https://github.com/bbangert/hassock/blob/v0.3.0/lib/hassock/label.ex#L1)

A label from Home Assistant's label registry (`config/label_registry/list`).

# `t`

```elixir
@type t() :: %Hassock.Label{
  color: String.t() | nil,
  description: String.t() | nil,
  icon: String.t() | nil,
  label_id: String.t(),
  name: String.t()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Build from an HA registry map. Unknown keys are ignored, missing keys are `nil`.

---

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