feature: add auradine control functions.

This commit is contained in:
b-rowan
2024-01-23 15:28:37 -07:00
parent eed1973345
commit b60c7a55d4
7 changed files with 206 additions and 11 deletions

View File

@@ -192,7 +192,10 @@ class FluxWebAPI(BaseWebAPI):
async def get_led(self):
return await self.send_command("led")
async def set_led(self, code: int, led_1: int, led_2: int, msg: str = ""):
async def set_led(self, code: int):
return await self.send_command("led", code=code)
async def set_led_custom(self, code: int, led_1: int, led_2: int, msg: str):
return await self.send_command(
"led", code=code, led1=led_1, led2=led_2, msg=msg
)