mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-17 13:02:18 +01:00
fix: schemas for lights attributes in home assistant entity widget
This commit is contained in:
committed by
GitHub
parent
732ef95bd9
commit
957ba4e058
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
||||
|
||||
|
||||
export const entityStateSchema = z.object({
|
||||
attributes: z.record(z.union([z.string(), z.number(), z.boolean(), z.null()])),
|
||||
attributes: z.record(z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(z.union([z.string(),z.number()]))])),
|
||||
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