custom-card-helpers
Version:
Set of helpful functions and types for Custom Card creators
5 lines (4 loc) • 320 B
TypeScript
import { HassEntity } from "home-assistant-js-websocket";
import { LocalizeFunc } from "./translations/localize";
import { FrontendLocaleData } from "./types";
export declare const computeStateDisplay: (localize: LocalizeFunc, stateObj: HassEntity, locale: FrontendLocaleData, state?: string | undefined) => string;