diff --git a/homeassistant/components/automation/numeric_state.py b/homeassistant/components/automation/numeric_state.py
index 40249372b439ff8e81f2ecad1ff2782098b3c211..d73b7061eb87789457c85350142b69e235a0c18f 100644
--- a/homeassistant/components/automation/numeric_state.py
+++ b/homeassistant/components/automation/numeric_state.py
@@ -92,12 +92,7 @@ def if_action(hass, config):
 
 def _in_range(state, range_start, range_end, renderer):
     """ Checks if value is inside the range """
-
-    if renderer is not None:
-        value = renderer({'value': state})
-    else:
-        # If no renderer is provided, just assume they want the state
-        value = state.state
+    value = state.state if renderer is None else renderer({'value': state})
 
     try:
         value = float(value)