Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/panels/lovelace/common/process-config-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ export const processConfigEntities = <T extends EntityConfig>(
`Entity object at position ${index} is missing entity field.`
);
}
config = entityConf as T;
Copy link
Copy Markdown
Member

@iantrich iantrich Dec 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a smart man... 😢

} else {
throw new Error(`Invalid entity specified at position ${index}.`);
}

config = entityConf as T;

if (!isValidEntityId(config.entity)) {
throw new Error(
`Invalid entity ID at position ${index}: ${config.entity}`
Expand Down