custom-card-helpers
Version:
Set of helpful functions and types for Custom Card creators
23 lines (22 loc) • 1.1 kB
TypeScript
/** Constants to be used in the frontend. */
/** Icon to use when no icon specified for domain. */
export declare const DEFAULT_DOMAIN_ICON = "mdi:bookmark";
/** Panel to show when no panel is picked. */
export declare const DEFAULT_PANEL = "lovelace";
/** Domains that have a state card. */
export declare const DOMAINS_WITH_CARD: string[];
/** Domains with separate more info dialog. */
export declare const DOMAINS_WITH_MORE_INFO: string[];
/** Domains that show no more info dialog. */
export declare const DOMAINS_HIDE_MORE_INFO: string[];
/** Domains that should have the history hidden in the more info dialog. */
export declare const DOMAINS_MORE_INFO_NO_HISTORY: string[];
/** States that we consider "off". */
export declare const STATES_OFF: string[];
/** Domains where we allow toggle in Lovelace. */
export declare const DOMAINS_TOGGLE: Set<string>;
/** Temperature units. */
export declare const UNIT_C = "\u00B0C";
export declare const UNIT_F = "\u00B0F";
/** Entity ID of the default view. */
export declare const DEFAULT_VIEW_ENTITY_ID = "group.default_view";