We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf0b65 commit 67273a3Copy full SHA for 67273a3
dingz/dingz.py
@@ -138,9 +138,15 @@ async def turn_off(self) -> None:
138
139
async def set_timer(self, data) -> None:
140
"""Set a timer."""
141
+ print(data)
142
url = URL(self.uri).join(URL(TIMER))
143
await make_call(self, uri=url, method="POST", json_data=data)
144
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
+
150
@property
151
def device_details(self) -> str:
152
"""Return the current device details."""
0 commit comments