diff --git a/echo-master/echo_controller/controller.py b/echo-master/echo_controller/controller.py index 22949d4..d15b298 100644 --- a/echo-master/echo_controller/controller.py +++ b/echo-master/echo_controller/controller.py @@ -17,7 +17,8 @@ class Controller: # These are all the output devices device_output_controls = { - 'sensor' : Sensor.Sensor.handle_data + 'sensor' : Sensor.Sensor.handle_data, + 'led_strip': LedStrip.LEDStrip.handle_data } @staticmethod diff --git a/echo-master/echo_controller/led_strip.py b/echo-master/echo_controller/led_strip.py index 76c13c7..c38a82d 100644 --- a/echo-master/echo_controller/led_strip.py +++ b/echo-master/echo_controller/led_strip.py @@ -74,3 +74,7 @@ class LEDStrip: return {'status': 'success', 'message': actionData['message']}, 200 return {'status': 'failed', 'message': 'Setting not found!'}, 200 + + @staticmethod + def handle_data(device, action, data): + pass \ No newline at end of file