feat: Modernize the visual card editor. (#2586)

This commit is contained in:
Dermot Duffy
2026-07-20 20:44:16 -07:00
committed by GitHub
parent e204ec183f
commit b6e1de5999
146 changed files with 8487 additions and 5992 deletions
@@ -0,0 +1,12 @@
import type { HASelectSelectorOption } from '../../../../ha/types';
import { localize } from '../../../../localize/localize';
/**
* Get the options for an interaction mode select.
* @returns The select options.
*/
export const getInteractionModeOptions = (): HASelectSelectorOption[] => [
{ value: 'all', label: localize('config.common.interaction_modes.all') },
{ value: 'inactive', label: localize('config.common.interaction_modes.inactive') },
{ value: 'active', label: localize('config.common.interaction_modes.active') },
];