From af5ec0f8befcc780627dc29f8be905f901019372 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Wed, 18 May 2022 21:20:23 -0700 Subject: [PATCH] Allow false_positive to be null to fix Frigate 0.11 compatibility. --- src/types.ts | 2 +- src/utils/ha/index.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index 704b0e44..77ee60be 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1221,7 +1221,7 @@ export const frigateBrowseMediaSourceSchema: z.ZodSchema = z. event: z.object({ camera: z.string(), end_time: z.number().nullable(), - false_positive: z.boolean(), + false_positive: z.boolean().nullable(), has_clip: z.boolean(), has_snapshot: z.boolean(), id: z.string(), diff --git a/src/utils/ha/index.ts b/src/utils/ha/index.ts index ebc3d5a7..633638a8 100644 --- a/src/utils/ha/index.ts +++ b/src/utils/ha/index.ts @@ -4,11 +4,11 @@ import { StyleInfo } from 'lit/directives/style-map.js'; import { ZodSchema } from 'zod'; import { localize } from '../../localize/localize.js'; import { - CardHelpers, - ExtendedHomeAssistant, - SignedPath, - signedPathSchema, - StateParameters + CardHelpers, + ExtendedHomeAssistant, + SignedPath, + signedPathSchema, + StateParameters } from '../../types.js'; import { stateIcon } from '../icons/state-icon.js'; import { getParseErrorKeys } from '../zod.js';