mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-26 09:19:18 +01:00
Updated entityStateSchema to handle nullables (#1744)
Co-authored-by: Gleb Fomichev <gleb.fomichev@softswiss.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
||||
|
||||
|
||||
export const entityStateSchema = z.object({
|
||||
attributes: z.record(z.union([z.string(), z.number(), z.boolean()])),
|
||||
attributes: z.record(z.union([z.string(), z.number(), z.boolean(), z.null()])),
|
||||
entity_id: z.string(),
|
||||
last_changed: z.string().pipe(z.coerce.date()),
|
||||
last_updated: z.string().pipe(z.coerce.date()),
|
||||
|
||||
Reference in New Issue
Block a user