Revert "Convert camera configuration to YAML dictionary."

This reverts commit 37458a299d458d5687db35f046669eff26793112.
This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent 86b26383d0
commit b03c8b4020
4 changed files with 26 additions and 22 deletions
+3 -4
View File
@@ -287,8 +287,7 @@ export function convertActionToFrigateCardCustomAction(
*/
export function createFrigateCardCustomAction(
action: FrigateCardAction,
camera?: string,
): FrigateCardCustomAction | undefined {
camera?: string): FrigateCardCustomAction | undefined {
if (action == 'camera_select') {
if (!camera) {
return undefined;
@@ -297,12 +296,12 @@ export function createFrigateCardCustomAction(
action: 'fire-dom-event',
frigate_card_action: action,
camera: camera,
};
}
}
return {
action: 'fire-dom-event',
frigate_card_action: action,
};
}
}
/**