cleaned up time trigger

This commit is contained in:
ari committed 2022-07-20 22:13:46 -04:00
1 parent ef02abe0cb
commit 3a44057a40
14 files changed
+536 -167

No files matched your search

@@ -10,6 +10,8 @@ export type InputEntityProps = InputAutoCompletePropsBase & {
restrictToDomain?: string[];
restrictedIntegrations?: string[];
preSelectedEntityIds?: string[];
restrictedDeviceClass?: string[];
restrictMode?: "and" | "or";
};
export const InputEntity: FC<InputEntityProps> = (props) => {
@@ -17,7 +19,9 @@ export const InputEntity: FC<InputEntityProps> = (props) => {
const entities = useHAEntities();
let options = entities.getOptions(
props.restrictToDomain,
props.restrictedIntegrations
props.restrictedIntegrations,
props.restrictedDeviceClass,
props.restrictMode ?? "and"
);
if (props.preSelectedEntityIds) {
options = options.filter((opt) =>