diff --git a/custom_components/omni_pca/frontend/src/omni-panel-programs.ts b/custom_components/omni_pca/frontend/src/omni-panel-programs.ts index 6b82bb6..b8cdee9 100644 --- a/custom_components/omni_pca/frontend/src/omni-panel-programs.ts +++ b/custom_components/omni_pca/frontend/src/omni-panel-programs.ts @@ -14,11 +14,14 @@ import { renderTokens } from "./token-renderer.js"; import { COMMAND_OPTIONS, CommandOption, + CondFamily, DAY_BITS, + DecodedCondition, DecodedEvent, EventCategory, FIXED_EVENTS, Hass, + MISC_CONDITIONALS, MONTH_NAMES, NamedObject, ObjectListResponse, @@ -29,8 +32,11 @@ import { ProgramFields, ProgramListResponse, ProgramRow, + SECURITY_MODE_NAMES, commandOptionFor, + decodeCondition, decodeEventId, + encodeCondition, encodeEventId, eventIdFromFields, packEventIdIntoFields, @@ -874,13 +880,7 @@ export class OmniPanelPrograms extends LitElement {
${this._renderTriggerSection(draft)} ${this._renderActionSection(draft)} - ${draft.cond || draft.cond2 ? html` -
- Inline conditions: - this program carries up to two inline AND-IF conditions on - the source record. They're preserved on save but editing - condition fields is not yet supported. -
` : ""} + ${this._renderConditionsSection(draft)}