how to make conditional fields work with MEDIA
It was giving an error on getType when it was a media object.
I fixed it by changing line 208 in conditional_fields.module to 

if (method_exists($entity, 'getType')) {
      $bundle = $entity-&gt;bundle();