Fix area name in target picker (#15511)

This commit is contained in:
Paul Bottein 2023-02-20 17:36:46 +01:00 committed by GitHub
parent bef586efb3
commit e21816be52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ export class HaTargetPicker extends LitElement {
<div class="mdc-chip-set items">
${this.value?.area_id
? ensureArray(this.value.area_id).map((area_id) => {
const area = this.hass.devices![area_id];
const area = this.hass.areas![area_id];
return this._renderChip(
"area_id",
area_id,