simplify command
This commit is contained in:
parent
034aebee3c
commit
dae4a527be
@ -9,7 +9,7 @@ GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(LED_PIN, GPIO.OUT)
|
||||
|
||||
def trigger_action(command):
|
||||
if "light" in command.lower():
|
||||
if "let" in command.lower():
|
||||
GPIO.output(LED_PIN, GPIO.HIGH)
|
||||
print("Light ON")
|
||||
elif "dark" in command.lower():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user