1
mirror of https://github.com/home-assistant/frontend synced 2024-09-25 09:39:00 +02:00
ha-frontend/src/panels/lovelace/editor/process-editor-entities.ts

11 lines
276 B
TypeScript
Raw Normal View History

2018-11-12 08:05:05 +01:00
import { EntityConfig } from "../entity-rows/types";
export function processEditorEntities(entities): EntityConfig[] {
return entities.map((entityConf) => {
if (typeof entityConf === "string") {
return { entity: entityConf };
}
return entityConf;
});
}