Skip to content

Commit 67273a3

Browse files
committed
Allow to chancel a timer
1 parent dbf0b65 commit 67273a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dingz/dingz.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,15 @@ async def turn_off(self) -> None:
138138

139139
async def set_timer(self, data) -> None:
140140
"""Set a timer."""
141+
print(data)
141142
url = URL(self.uri).join(URL(TIMER))
142143
await make_call(self, uri=url, method="POST", json_data=data)
143144

145+
async def stop_timer(self, data) -> None:
146+
"""Stop a timer."""
147+
url = URL(self.uri).join(URL(TIMER))
148+
await make_call(self, uri=url, method="POST", data=data)
149+
144150
@property
145151
def device_details(self) -> str:
146152
"""Return the current device details."""

0 commit comments

Comments
 (0)