Skip to content

Commit 34fd379

Browse files
committed
Add extra settable states
1 parent 33cfa6f commit 34fd379

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

hue2mqtt/schema.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from 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]

0 commit comments

Comments
 (0)