mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 16:43:19 +01:00
11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import type { HomeAssistant } from "../types";
|
|
|
|
export const setTimeValue = (
|
|
hass: HomeAssistant,
|
|
entityId: string,
|
|
time: string | undefined = undefined
|
|
) => {
|
|
const param = { entity_id: entityId, time: time };
|
|
hass.callService("time", "set_value", param);
|
|
};
|