brightness

This commit is contained in:
2025-10-31 15:31:35 +01:00
parent c3ec6e3fc4
commit 69e07056a1
4 changed files with 144 additions and 42 deletions

View File

@@ -18,8 +18,8 @@ class LightState(BaseModel):
color: Optional hex color string in format "#RRGGBB"
"""
power: Literal["on", "off"] = Field(
...,
power: Optional[Literal["on", "off"]] = Field(
None,
description="Power state of the light"
)