Skip to content

Commit 3398775

Browse files
committed
bugifx
1 parent 70293ba commit 3398775

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

aiotedee/lock.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aiotedee"
3-
version = "0.2.24"
3+
version = "0.2.25"
44
license = { text = "MIT License" }
55
description = "A package to interact with Tedee locks using asyncio"
66
readme = "README.md"

0 commit comments

Comments
 (0)