File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class MyQAPI:
33
33
34
34
STATE_OPEN = 'open'
35
35
STATE_CLOSED = 'closed'
36
+ STATE_STOPPED = 'stopped'
37
+ STATE_OPENING = 'opening'
38
+ STATE_CLOSING = 'closing'
39
+ STATE_UNKNOWN = 'unknown'
40
+ STATE_TRANSITION = 'transition'
36
41
37
42
LOGIN_ENDPOINT = "api/v4/User/Validate"
38
43
DEVICE_LIST_ENDPOINT = "api/v4/UserDeviceDetails/Get"
@@ -42,13 +47,15 @@ class MyQAPI:
42
47
REQUEST_TIMEOUT = 3.0
43
48
44
49
DOOR_STATE = {
45
- '1' : STATE_OPEN , #'open',
46
- '2' : STATE_CLOSED , #'close',
47
- '3' : STATE_OPEN , #'stopped',
48
- '4' : STATE_OPEN , #'opening',
49
- '5' : STATE_OPEN , #'closing',
50
- '8' : STATE_OPEN , #'in_transition',
51
- '9' : STATE_OPEN , #'open'
50
+ '1' : STATE_OPEN ,
51
+ '2' : STATE_CLOSED ,
52
+ '3' : STATE_STOPPED ,
53
+ '4' : STATE_OPENING ,
54
+ '5' : STATE_CLOSING ,
55
+ '6' : STATE_UNKNOWN ,
56
+ '7' : STATE_UNKNOWN ,
57
+ '8' : STATE_TRANSITION ,
58
+ '9' : STATE_OPEN ,
52
59
}
53
60
54
61
logger = logging .getLogger (__name__ )
You can’t perform that action at this time.
0 commit comments