def update_and_define_min_max(config, minimum_default, maximum_default):
 minimum_value = minimum_default
 maximum_value = maximum_default
 if config.get(CONF_MINIMUM):
  minimum_value = config.get(CONF_MINIMUM)
 if config.get(CONF_MAXIMUM):
  maximum_value = config.get(CONF_MAXIMUM)
 return (minimum_value, maximum_value)

def update_and_define_min_max ( config , minimum_default , maximum_default ) : minimum_value = minimum_default maximum_value = maximum_default if config . get ( CONF_MINIMUM ) : minimum_value = config . get ( CONF_MINIMUM ) if config . get ( CONF_MAXIMUM ) : maximum_value = config . get ( CONF_MAXIMUM ) return ( minimum_value , maximum_value )
function help determinate a min/max value defined in config .