Hassock.Label (hassock v0.3.0)

Copy Markdown View Source

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

Summary

Functions

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

Types

t()

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

Functions

from_map(map)

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

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