From d6941f8c7ce492ef1a3845df60423b28dbf3dff3 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 21 Nov 2025 18:33:14 -0600 Subject: [PATCH] optional kwargs --- apps/stages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/stages.py b/apps/stages.py index 83ec406..4374074 100644 --- a/apps/stages.py +++ b/apps/stages.py @@ -8,8 +8,9 @@ from pydantic import field_serializer class EntityState(BaseModel): state: bool = True - color_temp_kelvin: int - brightness: int + color_temp_kelvin: int | None = None + rgb_color: list[int] | None = None + brightness: int | None = None @field_serializer('state') def convert_state(self, val: Any):