Remove dset/dlv. Use lodash instead.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent a9539925ca
commit a15ea2af45
4 changed files with 6 additions and 15 deletions
+2 -2
View File
@@ -211,10 +211,10 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
* @returns A localized label.
*/
protected _getLabel(configPath: string): string {
// Strip out single number path components as they are array indicies.
// Strip out array indices from the path.
const path = configPath
.split('.')
.filter((e) => isNaN(Number(e)))
.filter((e) => !e.match(/^\[[0-9]+\]$/))
.join('.');
return localize(`config.${path}`);
}