From 4a7fb3d5093cc39c9b25d66192a81c9247e76c48 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 15 Oct 2020 00:57:30 +0200 Subject: [PATCH] Use attribute picker for sec. info in weather card editor (#7335) --- src/components/entity/ha-entity-attribute-picker.ts | 1 + .../config-elements/hui-weather-forecast-card-editor.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/entity/ha-entity-attribute-picker.ts b/src/components/entity/ha-entity-attribute-picker.ts index 909526c110..b8265961ce 100644 --- a/src/components/entity/ha-entity-attribute-picker.ts +++ b/src/components/entity/ha-entity-attribute-picker.ts @@ -80,6 +80,7 @@ class HaEntityAttributePicker extends LitElement { .value=${this._value} .allowCustomValue=${this.allowCustomValue} .renderer=${rowRenderer} + attr-for-value="bind-value" @opened-changed=${this._openedChanged} @value-changed=${this._valueChanged} > diff --git a/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts index cd7327a783..614a83c41b 100644 --- a/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts @@ -13,6 +13,7 @@ import { computeRTLDirection } from "../../../../common/util/compute_rtl"; import "../../../../components/entity/ha-entity-picker"; import "../../../../components/ha-formfield"; import "../../../../components/ha-switch"; +import "../../../../components/entity/ha-entity-attribute-picker"; import { HomeAssistant } from "../../../../types"; import { WeatherForecastCardConfig } from "../../cards/types"; import "../../components/hui-theme-select-editor"; @@ -102,7 +103,9 @@ export class HuiWeatherForecastCardEditor extends LitElement >
- + >