File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 55from pydantic import BaseModel , Field
66
77
8- class LightSetState (BaseModel ):
9- """The State of a light that we can set ."""
8+ class LightBaseState (BaseModel ):
9+ """The base attributes of a light state ."""
1010
1111 on : Optional [bool ]
1212
@@ -20,7 +20,18 @@ class LightSetState(BaseModel):
2020 transitiontime : Optional [str ]
2121
2222
23- class LightState (LightSetState ):
23+ class LightSetState (LightBaseState ):
24+ """The settable states of a light."""
25+
26+ bri_inc : Optional [int ]
27+ sat_inc : Optional [int ]
28+ hue_inc : Optional [int ]
29+ ct_inc : Optional [int ]
30+ xy_inc : Optional [int ]
31+ scene : Optional [str ]
32+
33+
34+ class LightState (LightBaseState ):
2435 """The State of a light that we can read."""
2536
2637 reachable : Optional [bool ]
You can’t perform that action at this time.
0 commit comments