fixed up calednar
This commit is contained in:
1 parent
6b21734041
commit
107def4fac
4 files changed
+17
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import InputText from "components/Inputs/Base/InputText";
|
||||
import { InputEntity } from "components/Inputs/AutoComplete/InputEntities";
|
||||
import { SceneAction } from "types/automations/actions";
|
||||
import { OptionManager } from "./OptionManager";
|
||||
|
||||
@@ -10,10 +10,11 @@ export const ActionSceneState: OptionManager<SceneAction> = {
|
||||
Component: ({ state, setState }) => {
|
||||
return (
|
||||
<>
|
||||
<InputText
|
||||
<InputEntity
|
||||
label="Scene"
|
||||
restrictToDomain={["scene"]}
|
||||
value={state.scene ?? ""}
|
||||
onChange={(d) => setState({ ...state, scene: d })}
|
||||
onChange={(d) => setState({ ...state, scene: d ?? "" })}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -2,6 +2,7 @@ import { OptionManager } from "./OptionManager";
|
||||
import { AutomationTriggerCalendar } from "types/automations/triggers";
|
||||
import { InputList } from "components/Inputs/InputList";
|
||||
import InputText from "components/Inputs/Base/InputText";
|
||||
import { InputEntity } from "components/Inputs/AutoComplete/InputEntities";
|
||||
|
||||
export const TriggerCalendarState: OptionManager<AutomationTriggerCalendar> = {
|
||||
defaultState: (): AutomationTriggerCalendar => ({
|
||||
@@ -12,6 +13,12 @@ export const TriggerCalendarState: OptionManager<AutomationTriggerCalendar> = {
|
||||
Component: ({ state, setState }) => {
|
||||
return (
|
||||
<>
|
||||
<InputEntity
|
||||
label="Calendar"
|
||||
restrictToDomain={["calendar"]}
|
||||
value={state.entity_id ?? ""}
|
||||
onChange={(v) => setState({ ...state, entity_id: v ?? "" })}
|
||||
/>
|
||||
<InputList
|
||||
label="Event Type"
|
||||
current={state.event}
|
||||
|
||||
Reference in new issue
Block a user