We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36dbbc7 commit 8cbc328Copy full SHA for 8cbc328
1 file changed
dingz/dingz.py
@@ -91,8 +91,9 @@ async def turn_on(self) -> None:
91
92
async def turn_off(self) -> None:
93
"""Disable/turn off the front LED."""
94
+ data = {"action": "off"}
95
url = URL(self.uri).join(URL(FRONT_LED_SET))
- await make_call(self, uri=url, method="POST", data={"action": "off"})
96
+ await make_call(self, uri=url, method="POST", data=data)
97
98
@property
99
def device_details(self) -> str:
0 commit comments