diff --git a/main.py b/main.py index 066879d..5cbe4a2 100644 --- a/main.py +++ b/main.py @@ -94,6 +94,9 @@ if __name__ == '__main__': mode = 0 power = "True" + r = 255 + g = 255 + b = 255 mqttBroker ="homeassistant.ping-mee.local" client = mqtt.Client("server_rack_led") @@ -114,10 +117,6 @@ if __name__ == '__main__': rainbowCycle(strip) elif mode == 1: - try: - r - except NameError: - client.publish("server-rack-led/rgb", "255,0,0") setColor(strip, Color(int(r), int(g), int(b))) time.sleep(1) else: