1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-02 16:43:19 +01:00
Files
frontend/src/data/time.ts
Wendelin 830d8d2410 Add type import check to eslint (#22488)
* Add type import check to eslint

* Add type imports with eslint --fix
2024-10-30 11:12:30 +00:00

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);
};