mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-14 20:20:22 +01:00
830d8d2410
* Add type import check to eslint * Add type imports with eslint --fix
13 lines
267 B
TypeScript
13 lines
267 B
TypeScript
import type { HomeAssistant } from "../types";
|
|
|
|
export const setDateTimeValue = (
|
|
hass: HomeAssistant,
|
|
entityId: string,
|
|
datetime: Date
|
|
) => {
|
|
hass.callService("datetime", "set_value", {
|
|
entity_id: entityId,
|
|
datetime: datetime.toISOString(),
|
|
});
|
|
};
|