From a7c834775164ede9c2c1fa0faec4bc0bb76543b0 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Wed, 1 Apr 2026 08:43:09 +0200 Subject: [PATCH] Fix Fill example data inserting incorrect datetime format (#51320) --- .../config/developer-tools/action/developer-tools-action.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/config/developer-tools/action/developer-tools-action.ts b/src/panels/config/developer-tools/action/developer-tools-action.ts index 7a018482d9..aa2e0b1217 100644 --- a/src/panels/config/developer-tools/action/developer-tools-action.ts +++ b/src/panels/config/developer-tools/action/developer-tools-action.ts @@ -1,7 +1,7 @@ import { mdiHelpCircleOutline } from "@mdi/js"; import type { HassService } from "home-assistant-js-websocket"; import { ERR_CONNECTION_LOST } from "home-assistant-js-websocket"; -import { dump, load } from "js-yaml"; +import { dump, JSON_SCHEMA, load } from "js-yaml"; import type { CSSResultGroup, TemplateResult } from "lit"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, query, state } from "lit/decorators"; @@ -652,7 +652,7 @@ class HaPanelDevAction extends LitElement { if (field.example) { let value: any = ""; try { - value = load(field.example); + value = load(field.example, { schema: JSON_SCHEMA }); } catch (_err: any) { value = this.hass.localize(