From bda7034f3812e6cfe8c7085ae9b7ea8c84cd467e Mon Sep 17 00:00:00 2001 From: markusressel Date: Wed, 5 Apr 2017 00:53:57 +0200 Subject: [PATCH] add method to get a list of supported functions --- sunix_ledstrip_controller_client/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sunix_ledstrip_controller_client/client.py b/sunix_ledstrip_controller_client/client.py index f85f545..2d08c82 100644 --- a/sunix_ledstrip_controller_client/client.py +++ b/sunix_ledstrip_controller_client/client.py @@ -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