File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ def state(self) -> TedeeLockState:
102102 """Return the state of the lock."""
103103 return TedeeLockState (self ._state )
104104
105+ @state .setter
106+ def state (self , status : int ):
107+ self ._state = status
108+
105109 @property
106110 def door_state (self ) -> TedeeDoorState :
107111 """Return the state of the door."""
@@ -111,10 +115,6 @@ def door_state(self) -> TedeeDoorState:
111115 def door_state (self , state : int ):
112116 self ._door_state = state
113117
114- @state .setter
115- def state (self , status : int ):
116- self ._state = status
117-
118118 @property
119119 def state_change_result (self ) -> int :
120120 """Return the state change result of the lock."""
@@ -192,4 +192,5 @@ def to_dict(self) -> dict[str, str | int | bool | None]:
192192 "is_enabled_pullspring" : self ._is_enabled_pullspring ,
193193 "is_enabled_auto_pullspring" : self ._is_enabled_auto_pullspring ,
194194 "duration_pullspring" : self ._duration_pullspring ,
195+ "door_state" : self ._door_state ,
195196 }
Original file line number Diff line number Diff line change 11[project ]
22name = " aiotedee"
3- version = " 0.2.24 "
3+ version = " 0.2.25 "
44license = { text = " MIT License" }
55description = " A package to interact with Tedee locks using asyncio"
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments