'Get stream format query for entity.'

def get_stream_query_for_entity(self, entity_id):

    default_stream_query = self.config.get(CONF_DEFAULT_STREAM_QUERY, DEFAULT_STREAM_QUERY)
    if entity_id:
        media_content_type = self.call_data.get(ATTR_MEDIA_CONTENT_TYPE)
        return self.config.get(CONF_CUSTOMIZE_ENTITIES, {}).get(entity_id, {}).get(media_content_type, default_stream_query)
    return default_stream_query
