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 5987d62 commit d81df15Copy full SHA for d81df15
dingz/dingz.py
@@ -1,6 +1,6 @@
1
"""A Python Client to interact with Dingz devices."""
2
import logging
3
-
+import json
4
import aiohttp
5
from yarl import URL
6
@@ -136,6 +136,12 @@ async def turn_off(self) -> None:
136
url = URL(self.uri).join(URL(FRONT_LED_SET))
137
await make_call(self, uri=url, method="POST", data=data)
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
@property
146
def device_details(self) -> str:
147
"""Return the current device details."""
0 commit comments