diff --git a/pi_mqtt_gpio/modules/raspberrypi.py b/pi_mqtt_gpio/modules/raspberrypi.py
index 1520a2cce1e54b639411006d5b8005cb2e91077e..a1b4174df0218c6b2b71aae62d247e86c0708c37 100644
--- a/pi_mqtt_gpio/modules/raspberrypi.py
+++ b/pi_mqtt_gpio/modules/raspberrypi.py
@@ -32,7 +32,7 @@ class GPIO(GenericGPIO):
         direction = DIRECTIONS[direction]
 
         if pullup is None:
-            pullup = PULLUPS[0]
+            pullup = PULLUPS[PinPullup.OFF]
         else:
             pullup = PULLUPS[pullup]