File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 11
11
# RESOURCE_TYPE = "devices"
12
12
URL = "/devices"
13
13
14
+ BUTTON_ACTION_INITIAL_PRESS = "INITIAL_PRESS"
15
+ BUTTON_ACTION_SHORT_RELEASE = "SHORT_RELEASE"
16
+ BUTTON_ACTION_DOUBLE_PRESS = "DOUBLE_PRESS"
17
+ BUTTON_ACTION_TREBLE_PRESS = "TREBLE_PRESS"
18
+ BUTTON_ACTION_HOLD = "HOLD"
19
+ BUTTON_ACTION_LONG_RELEASE = "LONG_RELEASE"
20
+
21
+ BUTTON_NAME_BUTTON_1 = "Button 1"
22
+ BUTTON_NAME_CLOSE = "Close"
23
+ BUTTON_NAME_DIM_DOWN = "Dim Down"
24
+ BUTTON_NAME_DIM_UP = "Dim Up"
25
+ BUTTON_NAME_NEXT = "Next Scene"
26
+ BUTTON_NAME_OFF = "Off"
27
+ BUTTON_NAME_ON = "On"
28
+ BUTTON_NAME_ONOFF = "On/OFF"
29
+ BUTTON_NAME_OPEN = "Open"
30
+ BUTTON_NAME_PREVIOUS = "Previous Scene"
31
+ BUTTON_NAME_ROTATE_CLOCKWISE = "Rotate clockwise"
32
+ BUTTON_NAME_ROTATE_COUNTER_CLOCKWISE = "Rotate counter clockwise"
33
+
14
34
15
35
class Device (APIItem ):
16
36
pass
@@ -30,6 +50,7 @@ def __init__(
30
50
async def introspect_button_event (self , model_unique_ids : Dict [str , str ]) -> dict :
31
51
"""Introspect button event for unique ID."""
32
52
button_events = {}
53
+
33
54
for model_id , unique_id in model_unique_ids .items ():
34
55
path = f"/{ URL } /{ unique_id } /state/buttonevent/introspect"
35
56
raw = await self ._request ("get" , path )
You can’t perform that action at this time.
0 commit comments