diff --git a/components/ratgdo/__init__.py b/components/ratgdo/__init__.py
index 45e1867..d275328 100644
--- a/components/ratgdo/__init__.py
+++ b/components/ratgdo/__init__.py
@@ -71,7 +71,7 @@ async def to_code(config):
     pin = await cg.gpio_pin_expression(config[CONF_INPUT_RPM2])
     cg.add(var.set_input_rpm2_pin(pin))
     pin = await cg.gpio_pin_expression(config[CONF_INPUT_OBST])
-    cg.add(var.set_input_obst(pin))
+    cg.add(var.set_input_obst_pin(pin))
 
     cg.add_library(
         name="secplus",