Skip to content

Commit

Permalink
add method to get a list of supported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Apr 4, 2017
1 parent f81cb92 commit bda7034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sunix_ledstrip_controller_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ def set_ww(self, controller: Controller, warm_white: int, cold_white: int) -> No
self._send_data(controller.get_host(), controller.get_port(), data)
self.update_state(controller)

def get_function_list(self) -> [FunctionId]:
"""
:return: a list of all supported functions
"""
return list(FunctionId)

def set_function(self, controller: Controller, function_id: FunctionId, speed: int):
"""
Sets a function on the specified controller
Expand Down

0 comments on commit bda7034

Please sign in to comment.