From 080cad0ccde4621e997ce2ad2729a878e62ce1f7 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 2 May 2022 00:21:25 +0200 Subject: [PATCH] Prevent color temp selector mired exception (#12536) --- src/components/ha-selector/ha-selector-color-temp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ha-selector/ha-selector-color-temp.ts b/src/components/ha-selector/ha-selector-color-temp.ts index e94519df24..d309e4f5d3 100644 --- a/src/components/ha-selector/ha-selector-color-temp.ts +++ b/src/components/ha-selector/ha-selector-color-temp.ts @@ -27,8 +27,8 @@ export class HaColorTempSelector extends LitElement { pin icon="hass:thermometer" .caption=${this.label || ""} - .min=${this.selector.color_temp.min_mireds ?? 153} - .max=${this.selector.color_temp.max_mireds ?? 500} + .min=${this.selector.color_temp?.min_mireds ?? 153} + .max=${this.selector.color_temp?.max_mireds ?? 500} .value=${this.value} .disabled=${this.disabled} .helper=${this.helper}