mirror of
https://github.com/home-assistant/frontend
synced 2024-09-25 09:39:00 +02:00
11 lines
276 B
TypeScript
11 lines
276 B
TypeScript
|
import { EntityConfig } from "../entity-rows/types";
|
||
|
|
||
|
export function processEditorEntities(entities): EntityConfig[] {
|
||
|
return entities.map((entityConf) => {
|
||
|
if (typeof entityConf === "string") {
|
||
|
return { entity: entityConf };
|
||
|
}
|
||
|
return entityConf;
|
||
|
});
|
||
|
}
|