This commit is contained in:
Nick Leeman 2020-07-07 17:10:29 +02:00
parent f11d088d0c
commit ffbb2a0071
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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