Compare commits

...

1 Commits

Author SHA1 Message Date
Paul Bottein
7f1db9a151 Remove unassigned from order configuration in areas strategy 2025-07-09 17:26:41 +02:00

View File

@@ -183,7 +183,9 @@ export class HaAreasFloorsDisplayEditor extends LitElement {
const floorIds = this._sortedFloors(
this.hass.floors,
this.value?.floors_display?.order
).map((floor) => floor.floor_id);
)
.map((floor) => floor.floor_id)
.filter((floorId) => floorId !== UNASSIGNED_FLOOR);
const newOrder = [...floorIds];
const movedFloorId = newOrder.splice(oldIndex, 1)[0];
newOrder.splice(newIndex, 0, movedFloorId);