@@ -8,24 +8,24 @@ import { fireEvent } from "../../../common/dom/fire_event";
88import "../../../components/chips/ha-chip-set" ;
99import "../../../components/chips/ha-input-chip" ;
1010import "../../../components/ha-alert" ;
11- import "../../../components/ha-button" ;
1211import "../../../components/ha-aliases-editor" ;
12+ import "../../../components/ha-area-picker" ;
13+ import "../../../components/ha-button" ;
1314import { createCloseHeading } from "../../../components/ha-dialog" ;
1415import "../../../components/ha-icon-picker" ;
1516import "../../../components/ha-picture-upload" ;
1617import "../../../components/ha-settings-row" ;
1718import "../../../components/ha-svg-icon" ;
1819import "../../../components/ha-textfield" ;
19- import "../../../components/ha-area-picker " ;
20+ import { updateAreaRegistryEntry } from "../../../data/area_registry " ;
2021import type {
2122 FloorRegistryEntry ,
2223 FloorRegistryEntryMutableParams ,
2324} from "../../../data/floor_registry" ;
2425import { haStyle , haStyleDialog } from "../../../resources/styles" ;
2526import type { HomeAssistant } from "../../../types" ;
26- import type { FloorRegistryDetailDialogParams } from "./show-dialog-floor-registry-detail" ;
2727import { showAreaRegistryDetailDialog } from "./show-dialog-area-registry-detail" ;
28- import { updateAreaRegistryEntry } from "../../../data/area_registry " ;
28+ import type { FloorRegistryDetailDialogParams } from "./show-dialog-floor-registry-detail " ;
2929
3030class DialogFloorDetail extends LitElement {
3131 @property ( { attribute : false } ) public hass ! : HomeAssistant ;
@@ -168,11 +168,6 @@ class DialogFloorDetail extends LitElement {
168168 ) }
169169 </ h3>
170170
171- <p class= "description" >
172- ${ this . hass . localize (
173- "ui.panel.config.floors.editor.areas_description"
174- ) }
175- </ p>
176171 ${ areas . length
177172 ? html `<ha- chip- set>
178173 ${ repeat (
@@ -197,13 +192,17 @@ class DialogFloorDetail extends LitElement {
197192 </ ha- input- chip> `
198193 ) }
199194 </ ha- chip- set> `
200- : nothing }
195+ : html `<p class= "description" >
196+ ${ this . hass . localize (
197+ "ui.panel.config.floors.editor.areas_description"
198+ ) }
199+ </ p> ` }
201200 <ha- area- picker
202201 no- add
203202 .hass = ${ this . hass }
204203 @value-changed = ${ this . _addArea }
205204 .excludeAreas = ${ areas . map ( ( a ) => a . area_id ) }
206- .label = ${ this . hass . localize (
205+ .addButtonLabel = ${ this . hass . localize (
207206 "ui.panel.config.floors.editor.add_area"
208207 ) }
209208 > </ ha- area- picker>
0 commit comments