glome/homeassistant/entity_id

Types

pub type EntityId {
  EntityId(domain: Domain, object_id: String)
}

Constructors

  • EntityId(domain: Domain, object_id: String)

Functions

pub fn from_state_change_event_json(json: String) -> Result(
  EntityId,
  GlomeError,
)
pub fn to_string(entity_id: EntityId) -> String