fix
This commit is contained in:
parent
f11d088d0c
commit
ffbb2a0071
@ -17,7 +17,8 @@ class Controller:
|
|||||||
|
|
||||||
# These are all the output devices
|
# These are all the output devices
|
||||||
device_output_controls = {
|
device_output_controls = {
|
||||||
'sensor' : Sensor.Sensor.handle_data
|
'sensor' : Sensor.Sensor.handle_data,
|
||||||
|
'led_strip': LedStrip.LEDStrip.handle_data
|
||||||
}
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -74,3 +74,7 @@ class LEDStrip:
|
|||||||
return {'status': 'success', 'message': actionData['message']}, 200
|
return {'status': 'success', 'message': actionData['message']}, 200
|
||||||
|
|
||||||
return {'status': 'failed', 'message': 'Setting not found!'}, 200
|
return {'status': 'failed', 'message': 'Setting not found!'}, 200
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def handle_data(device, action, data):
|
||||||
|
pass
|
Loading…
x
Reference in New Issue
Block a user