Add support for editing id field.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent 0835a78ce2
commit c472e3e852
6 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -415,10 +415,10 @@ export class FrigateCard extends LitElement {
}
if (config.camera_name) {
const id = config.card_id || config.camera_entity || config.camera_name;
const id = config.id || config.camera_entity || config.camera_name;
if (cameras.has(id)) {
this._setMessageAndUpdate({
message: localize('error.duplicate_frigate_camera_name'),
message: localize('error.duplicate_camera_id'),
type: 'error',
});
errorFree = false;